nxtomomill.converter.edf.edfconverter.edf_to_nx#
- nxtomomill.converter.edf.edfconverter.edf_to_nx(scan, output_file, file_extension, file_keys=EDFFileKeys(motor_pos_keys=('motor_pos',), motor_mne_keys=('motor_mne',), rot_angle_keys=('srot', 'somega'), x_trans_keys=('sx',), y_trans_keys=('sy',), z_trans_keys=('sz',), to_ignore=('_slice_',), dark_names=('darkend', 'dark'), ref_names=('ref', 'refHST'), machine_elec_current_keys=('srcur', 'srcurrent')), progress=None, sample_name=None, title=None, instrument_name=None, source_name=None, source_type=None)[source]#
Convert an edf file to a nexus file. For now duplicate data.
- Parameters
scan (
EDFTomoScan
) –output_file (
str
) –file_extension (
str
) –file_keys (
EDFFileKeys
) –progress –
sample_name (
Optional
[str
]) – name of the sampletitle (
Optional
[str
]) – dataset titleinstrument_name (
Optional
[str
]) – name of the instrument usedsource_name (
Optional
[str
]) – name of the source (most likely ESRF)source_type (
Optional
[SourceType
]) – type of the source (most likely “Synchrotron X-ray Source”)
- Return type
tuple
- Returns
(nexus_file, entry)