Esempio n. 1
0
def run(args):

  work_params = get_phil(args)
  C = fit_translation(work_params)
  C.post_min_recalc()
  C.print_table()

  return None
Esempio n. 2
0
def run(args):

    work_params = get_phil(args)
    C = fit_translation(work_params)
    C.post_min_recalc()
    C.print_table()

    return None
Esempio n. 3
0
File: mark3.py Progetto: dials/cctbx
def run(args):

    work_params = get_phil(args)
    C = fit_translation2(work_params)
    C.post_min_recalc()
    C.print_table()
    sum_sq = 0.
    for key in C.frame_delx.keys():
        mn_x = flex.mean(C.frame_delx[key])
        mn_y = flex.mean(C.frame_dely[key])
        print("frame %d count %4d delx %7.2f  dely %7.2f" %
              (key, len(C.frame_delx[key]), mn_x, mn_y))
        sum_sq += mn_x * mn_x + mn_y * mn_y
    displacement = math.sqrt(sum_sq / len(C.frame_delx))
    print("rms displacement of frames %7.2f" % displacement)
    C.same_sensor_table()
    return None
Esempio n. 4
0
def run(args):

  work_params = get_phil(args)
  C = fit_translation2(work_params)
  C.post_min_recalc()
  C.print_table()
  sum_sq = 0.
  for key in C.frame_delx.keys():
    mn_x = flex.mean(C.frame_delx[key])
    mn_y = flex.mean(C.frame_dely[key])
    print "frame %d count %4d delx %7.2f  dely %7.2f"%(key,
      len(C.frame_delx[key]),
      mn_x,
      mn_y )
    sum_sq += mn_x*mn_x + mn_y*mn_y
  displacement = math.sqrt(sum_sq / len(C.frame_delx.keys()))
  print "rms displacement of frames %7.2f"%displacement
  C.same_sensor_table()
  return None