예제 #1
0
파일: best.py 프로젝트: dials/dials
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_)
예제 #2
0
파일: best.py 프로젝트: hackerlank/dials
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_)
예제 #3
0
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)
예제 #4
0
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")