cfelpyutils.crystfel_utils module¶
Utilities for interoperability with data formats used in the CrystFEL software package.
Exports:
Functions:
- load_crystfel_geometry: a python reimplementation of the
- get_detector_geometry_2 function from CrystFEL.
-
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