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 –
output_file –
file_extension –
file_keys –
progress –
sample_name – name of the sample
title – dataset title
instrument_name – name of the instrument used
source_name – name of the source (most likely ESRF)
source_type – type of the source (most likely “Synchrotron X-ray Source”)
- Returns
(nexus_file, entry)