cfelpyutils.crystfel_utils module¶
CryystFEL utilities.
This module contains the implementation of several functions used to interact with CrystFEL files and data (geometry files, stream files).
-
cfelpyutils.crystfel_utils.
load_crystfel_geometry
(filename)¶ Load a CrystFEL geometry file into a dictionary.
Reimplementation of the get_detector_geometry_2 function from CrystFEL in python. Return a dictionary with the geometry information read from the file. Convert entries in the geometry file to keys in the returned dictionary. For a full documentation on the CrystFEL geometry format, see:
http://www.desy.de/~twhite/crystfel/manual-crystfel_geometry.html
The code of this function is synced with the code of the function ‘get_detector_geometry_2’ in CrystFEL at commit 41a8fa9819010fe8ddeb66676fee717f5226c7b8.
Parameters: filename (str) – filename of the geometry file. Returns: dictionary with the geometry information loaded from the file. Return type: Dict