LaPDMapperο
- class bapsflib.lapd._hdf.mapper.LaPDMapper(hdf_obj: File, control_path='Raw data + config', digitizer_path='Raw data + config', msi_path='MSI')ο
Bases:
HDFMapperA specialized version of
HDFMapperwhich adds attributes that are specific to mapping a HDF5 file generated by the LaPD.- Parameters:
hdf_obj (
h5py.File) β HDF5 file objectcontrol_path (
str, optional) β internal HDF5 path to group containing control devices (DEFAULT'Raw data + config')digitizer_path (
str, optional) β internal HDF5 path to group containing digitizers (DEFAULT'Raw data + config')msi_path (
str, optional) β internal HDF5 path to group containing MSI diagnostics (DEFAULT'MSI')
Attributes Summary
Dictionary of all the control device mapping objects.
Dictionary of all the digitizer device mapping objects.
Dictionary of experiment info
Trueif HDF5 file was generated by the LaPDLaPD HDF5 version string.
Mapping object for the digitizer that is assumed to be the main digitizer in
digitizers.Dictionary of all the MSI diagnostic mapping objects.
Dictionary of experimental run info.
List of all subgroup and dataset paths in the HDF5 root group, control device group, digitizer group, and MSI group that were not mapped.
Methods Summary
get(name)Get a device mapping instance.
Attributes Documentation
- controlsο
Dictionary of all the control device mapping objects.
Examples
How to retrieve the mapping object of the control device
'6K Compumotor':fmap = HDFMapper(file_obj) dmap = fmap.controls['6K Compumotor']
- digitizersο
Dictionary of all the digitizer device mapping objects.
Examples
How to retrieve the mapping object of the digitizer
'SIS 3301':fmap = HDFMapper(file_obj) dmap = fmap.digitizers['SIS 3301']
- exp_infoο
Dictionary of experiment info
- lapd_versionο
LaPD HDF5 version string.
- main_digitizerο
Mapping object for the digitizer that is assumed to be the main digitizer in
digitizers.Notes
The main digitizer is determined by scanning through the local tuple
possible_candidatesthat contains a hierarchical list of digitizers. The first digitizer found is assumed to be the main digitizer.
- msiο
Dictionary of all the MSI diagnostic mapping objects.
Examples
How to retrieve the mapping object of the
'Magnetic field'MSI diagnostic:fmap = HDFMapper(file_obj) dmap = fmap.msi['Magnetic field']
- run_infoο
Dictionary of experimental run info.
- unknownsο
List of all subgroup and dataset paths in the HDF5 root group, control device group, digitizer group, and MSI group that were not mapped.
Methods Documentation
- get(name: str)ο
Get a device mapping instance. Returns
Noneif no mapping instance fornameis found.- Parameters:
name (
str) β name of desired device
Examples
How to retrieve the mapping object for the
'SIS 3301'digitizer:>>> fmap = HDFMapper(file_obj) >>> dmap = fmap.get('SIS 3301') >>> >>> # which is equivalent to >>> dmap = fmap.digitizers['SIS 3301']