def write_background_file(file_name, imageset, n_bins): from dials.command_line.background import background d, I, sig = background(imageset, imageset.indices()[0], n_bins=n_bins) with open(file_name, 'wb') as f: for d_, I_, sig_ in zip(d, I, sig): print >> f, '%10.4f %10.2f %10.2f' %(d_, I_, sig_)
def write_background_file(file_name, imageset, n_bins): from dials.command_line.background import background d, I, sig = background(imageset, imageset.indices()[0], n_bins=n_bins) with open(file_name, 'wb') as f: for d_, I_, sig_ in zip(d, I, sig): print >> f, '%10.4f %10.2f %10.2f' % (d_, I_, sig_)
def write_background_file(file_name, imageset, n_bins): from dials.command_line.background import background d, I, sig = background(imageset, imageset.indices()[0], n_bins=n_bins) logger.info('Saving background file to %s' % file_name) with open(file_name, 'wb') as f: for d_, I_, sig_ in zip(d, I, sig): f.write('%10.4f %10.2f %10.2f' % (d_, I_, sig_) + os.linesep)
def write_background_file(file_name, imageset, n_bins): from dials.command_line.background import background d, I, sig = background(imageset, imageset.indices()[0], n_bins=n_bins) logger.info("Saving background file to %s", file_name) with open(file_name, "w") as f: for d_, I_, sig_ in zip(d, I, sig): f.write(f"{d_:10.4f} {I_:10.2f} {sig_:10.2f}\n")