try: dials_regression = libtbx.env.dist_path('dials_regression') except KeyError, e: print 'FAIL: dials_regression not configured' raise # The XDS values xds_sigma_d = 0.060 xds_sigma_m = 0.154 # Read the reflections file filename = os.path.join(dials_regression, 'centroid_test_data', 'reflections.h5') #filename = os.path.join('/home/upc86896/Data/X1_strong_M1S1_1_', 'reflections.h5') handle = NexusFile(filename, 'r') # Get the reflection list print 'Reading reflections.' reflections = handle.get_reflections() print 'Read {0} reflections.'.format(len(reflections)) # Read images template = os.path.join(dials_regression, 'centroid_test_data', 'centroid_*.cbf') #template = os.path.join('/home/upc86896/Data/X1_strong_M1S1_1_', 'X1_strong_M1S1_1_*.cbf') filenames = glob(template) # Load the sweep print 'Loading sweep' sweep = SweepFactory.sweep(filenames)[0:10]
try: dials_regression = libtbx.env.dist_path("dials_regression") except KeyError as e: print("FAIL: dials_regression not configured") raise # The XDS values xds_sigma_d = 0.060 xds_sigma_m = 0.154 # Read the reflections file filename = os.path.join(dials_regression, "centroid_test_data", "reflections.h5") # filename = os.path.join('/home/upc86896/Data/X1_strong_M1S1_1_', 'reflections.h5') handle = NexusFile(filename, "r") # Get the reflection list print("Reading reflections.") predicted = handle.get_reflections() print("Read {0} reflections.".format(len(predicted))) # Read images template = os.path.join(dials_regression, "centroid_test_data", "centroid_*.cbf") # template = os.path.join('/home/upc86896/Data/X1_strong_M1S1_1_', 'X1_strong_M1S1_1_*.cbf') filenames = glob(template) # Load the sweep print("Loading sweep") sweep = SweepFactory.sweep(filenames)
try: dials_regression = libtbx.env.dist_path("dials_regression") except KeyError as e: print("FAIL: dials_regression not configured") raise # The XDS values xds_sigma_d = 0.060 xds_sigma_m = 0.154 # Read the reflections file filename = os.path.join(dials_regression, "centroid_test_data", "reflections.h5") # filename = os.path.join('/home/upc86896/Data/X1_strong_M1S1_1_', 'reflections.h5') handle = NexusFile(filename, "r") # Get the reflection list print("Reading reflections.") reflections = handle.get_reflections() print("Read {0} reflections.".format(len(reflections))) # Read images template = os.path.join(dials_regression, "centroid_test_data", "centroid_*.cbf") # template = os.path.join('/home/upc86896/Data/X1_strong_M1S1_1_', 'X1_strong_M1S1_1_*.cbf') filenames = glob(template) # Load the sweep print("Loading sweep") sweep = SweepFactory.sweep(filenames)
try: dials_regression = libtbx.env.dist_path('dials_regression') except KeyError, e: print 'FAIL: dials_regression not configured' raise # The XDS values xds_sigma_d = 0.060 xds_sigma_m = 0.154 # Read the reflections file filename = os.path.join(dials_regression, 'centroid_test_data', 'reflections.h5') #filename = os.path.join('/home/upc86896/Data/X1_strong_M1S1_1_', 'reflections.h5') handle = NexusFile(filename, 'r') # Get the reflection list print 'Reading reflections.' predicted = handle.get_reflections() print 'Read {0} reflections.'.format(len(predicted)) # Read images template = os.path.join(dials_regression, 'centroid_test_data', 'centroid_*.cbf') #template = os.path.join('/home/upc86896/Data/X1_strong_M1S1_1_', 'X1_strong_M1S1_1_*.cbf') filenames = glob(template) # Load the sweep print 'Loading sweep' sweep = SweepFactory.sweep(filenames)