示例#1
0
    params.indexing.two_color.avg_energy = parameters.ENERGY_LOW * .5 + parameters.ENERGY_HIGH * .5
    params.indexing.stills.refine_all_candidates = False
    params.indexing.stills.refine_candidates_with_known_symmetry = False
    params.indexing.refinement_protocol.mode = "ignore"
    params.indexing.stills.rmsd_min_px = 20000
    params.indexing.stills.candidate_outlier_rejection = False

    params.indexing.refinement_protocol.n_macro_cycles = 1
    params.indexing.multiple_lattice_search.max_lattices = 1
    params.indexing.basis_vector_combinations.max_refine = 10000000000
    #params.indexing.basis_vector_combinations.max_combinations = 150
    params.refinement.reflections.outlier.algorithm = "null"

    # ====================================================================

    BEAM_LOW = BeamFactory.simple_directional((0, 0, 1),
                                              parameters.WAVELEN_LOW)
    BEAM_HIGH = BeamFactory.simple_directional((0, 0, 1),
                                               parameters.WAVELEN_HIGH)

if __name__ == "__main__":
    show_hits = False
    if not HAS_TWO_COLOR:
        print("Need to install the module cxi_xdr_xes")
        sys.exit()
    pickle_fname = sys.argv[1]
    image_fname = sys.argv[2]

    print('Loading reflections')
    with open(pickle_fname, 'r') as f:
        found_refl = cPickle.load(f)
    refl_select = spot_utils.ReflectionSelect(found_refl)
示例#2
0
 def nanoBragg_constructor_beam(self):
     """dumb necessity FIXME please"""
     beam = BeamFactory.from_dict(self.xray_beams[0].to_dict())
     beam.set_wavelength(beam.get_wavelength() * 1e10)
     return beam
示例#3
0
 def _get_beam(self):
     return BeamFactory.simple_directional((0, 0, 1), WAVELEN_LOW)
示例#4
0
 def _beam(self):
     """
     Create the beam model
     """
     configuration = self.header["configuration"]
     return BeamFactory.simple(configuration["wavelength"])
示例#5
0
def test_beam_self_serialization():
    beam = Beam()
    assert beam == BeamFactory.from_dict(beam.to_dict())
示例#6
0
 def dummy_beam():
     return BeamFactory.simple(1.0)