MythenFileReader¶
File reader to read mythen files. Supported are two file formats. RawMythenFileReader reads raw files as written by the slsDetectorPackage. The class EpicsMythenFileReader reads hdf5 files written by Epics.
The EpicsMythenFileReader inherits from a wrapper class based on the C++ API of the HDF5 C Library. The provided dataset need to have fields data storing the photon counts,
DetectorAngle storing the detector position in degrees and CounterMask storing which counters are active. The field CounterMask stores an integer representation of a 3-digit bit string, where each bit is set to 1 if the counter is active.
Example¶
CounterMask: 4 // binary representation 1 0 0
only channel 0 is active
CounterMask: 3 // binary representation 0 1 1
channel 1 and 2 are active
- class angcal._angcal.RawMythenFileReader¶
Methods
read_detector_angle(self, arg0)read_frame(self, arg0)- _pybind11_conduit_v1_()¶
- read_detector_angle(self: angcal._angcal.RawMythenFileReader, arg0: str) float¶
- read_frame(self: angcal._angcal.RawMythenFileReader, arg0: str) angcal._angcal.MythenFrame¶
- class angcal._angcal.EpicsMythenFileReader¶
Methods
read_detector_angle(self, arg0)read_frame(self, arg0)- _pybind11_conduit_v1_()¶
- read_detector_angle(self: angcal._angcal.EpicsMythenFileReader, arg0: str) float¶
- read_frame(self: angcal._angcal.EpicsMythenFileReader, arg0: str) angcal._angcal.MythenFrame¶
MythenFrame¶
- class angcal._angcal.MythenFrame¶
- Attributes:
- channel_mask
- detector_angle
- exposure_time
- incident_intensity
- photon_counts
Methods
photon_count(self, row[, col])- _pybind11_conduit_v1_()¶
- property channel_mask¶
- property detector_angle¶
- property exposure_time¶
- property incident_intensity¶
- photon_count(self: angcal._angcal.MythenFrame, row: int, col: int = 0) int¶
- property photon_counts¶