ewoksid02.id02_format.ID02ProcessedFileHS32#

class ewoksid02.id02_format.ID02ProcessedFileHS32(headers=None, *args, **kwargs)[source]#

Bases: ID02FormatFile

Parameters:

headers (dict)

CHUNK_SIZE_3D = (1, 200, 200)#
COMPRESSION_ALGORITHM = <hdf5plugin._filters.Bitshuffle object>#
DATASET_SIGMA_NAME = 'data_errors'#
DATASET_SIGNAL_NAME = 'data'#
DATASET_VARIANCE_NAME = 'data_variance'#
ENTRY_NAME = '/entry_0000'#
FORMAT_EWOKS_PROCESS_TITLE = '{index:02} - {class_name}'#
FORMAT_HS32C = 'int64'#
FORMAT_HS32F = 'float64'#
FORMAT_HS32N = dtype('O')#
FORMAT_HS32V = 'float64'#
FORMAT_HS32Z = 'float64'#
FORMAT_STRING = dtype('O')#
KEY_DELTA_TIME = 'delta_time'#
KEY_DELTA_TIME_NXDATA = 't'#
KEY_EXPOSURE_TIME = 'ExposureTime'#
KEY_I0_SHUTCOR = 'Intensity0ShutCor'#
KEY_I0_UNCOR = 'Intensity0UnCor'#
KEY_I1_SHUTCOR = 'Intensity1ShutCor'#
KEY_I1_UNCOR = 'Intensity1UnCor'#
KEY_TITLEEXTENSION = 'TitleExtension'#
MCS_INTERPRETED = 'interpreted'#
MCS_RAW_NAME = 'raw'#
MCS_SUBSCAN1 = 'subscan_1'#
MCS_SUBSCAN2 = 'subscan_2'#
NXCOLLECTION_EWOKS_HISTORY_NAME = 'history'#
NXCOLLECTION_EWOKS_LASTPROCESS_NAME = 'last_process'#
NXCOLLECTION_EWOKS_NAME = 'ewoks'#
NXCOLLECTION_MCS_NAME = 'MCS'#
NXCOLLECTION_PARAMETERS_NAME = 'parameters'#
NXCOLLECTION_TFG_NAME = 'TFG'#
NXDATA_NAME_TEMPLATE = 'result_{processing_type}'#
NXNOTE_CONFIGURATION_NAME = 'configuration'#
NXPROCESS_PYFAI_NAME = 'PyFAI'#
NXPROCESS_TRUSAXS_NAME = 'TRUSAXS'#
property configuration_group: Group#
property configuration_path: str#
create_group(*args, **kwargs)#
create_h5_group(h5_group_path, title=None, **kwargs)[source]#

Unified method to create a group in a HDF5 file with additional attributes.

h5_parent_group: h5py.Group - Parent group where the new group will be created h5_group_name: str - Name of the new group title: str - Title of the group kwargs: dict - Additional arguments to add as attributes in the group

Parameters:
  • h5_group_path (str)

  • title (str)

Return type:

Group

property entry_group: Group#
property ewoks_group: Group#
property ewoks_history_group: Group#
property ewoks_history_path: str#
property ewoks_last_process_path: str#
property ewoks_path: str#
property headers: dict#
property headers_group: Group#
property headers_path: str#
is_id02_processed_file()[source]#
property mcs_group: Group#
property mcs_path: str#
property nxdata_dataset_sigma_path: str#
property nxdata_dataset_signal_path: str#
property nxdata_dataset_variance_path: str#
property nxdata_delta_time_path: str#
property nxdata_name: str#
property nxdata_path: str#
property nxdetector_path: str#
property nxprocess_group: Group#
property nxprocess_name: str#
property nxprocess_path: str#
property parameters_group: Group#
property parameters_path: str#
read_ewoks_history()[source]#
Return type:

list

property streams_subscan1_path: str#
property streams_subscan2_path: str#
property tfg_group: Group#
property tfg_path: str#
update_dataset(added_dataset, h5_dataset_path, index_read=None, datatype=None, **kwargs)[source]#

Update a dataset in a HDF5 file with new data. It will create the dataset if it does not exist.

added_dataset: numpy.ndarray - Array with the new data. It has to contain an additional dimension to the data h5_group: h5py.Group - Group in the HDF5 file where the dataset is located h5_dataset_name: str - Name of the dataset in h5_group kwargs: dict - Additional arguments to add as attributes in the dataset

Parameters:
  • added_dataset (ndarray)

  • h5_dataset_path (str)

  • index_read (tuple)

  • datatype (str)

Return type:

None

write_ewoks_history(list_ewoks_history)[source]#
Parameters:

list_ewoks_history (list)

write_processing_parameters(processing_parameters)[source]#
Parameters:

processing_parameters (dict)

Return type:

None