nxtomomill.io.config.hdf5config.TomoHDF5Config#
- class nxtomomill.io.config.hdf5config.TomoHDF5Config[source]#
Bases:
ConfigBaseConfiguration class to provide to the convert from h5 to nx
Methods
__init__()clear entries and sub_entries_to_ignore
set all titles to empty tuple
dict_to_cfg(file_path, dict_)from_cfg_file(file_path[, encoding])from_dict(dict_)Create a HDF5Config object and set it from values contained in the dictionary :param dict dict_: settings dictionary :return: HDF5Config
get_comments(key)return the default unit for the extra parameters that can be defined by the user
load_entries_titles_section(dict_)load_extra_params_section(dict_)load_frame_type_section(dict_)load_from_dict(dict_)Load the configuration from a dictionary
load_general_section(dict_)load_keys_section(dict_)load_pcotomo_section(dict_)to_cfg_file(file_path)to_dict()convert the configuration to a dictionary
Attributes
ACQUISITION_EXPO_TIME_KEYS_DKALIGNMENT_TITLES_DKCOMMENTSCOMMENTS_ENTRIES_TITLES_SECTIONCOMMENTS_EXTRA_PARAMS_SECTIONCOMMENTS_FRAME_TYPE_SECTIONCOMMENTS_GENERAL_SECTIONCOMMENTS_KEYS_SECTIONCOMMENTS_PCOTOMO_SECTIONDARK_TITLES_DKDATA_DKDEFAULT_DATA_COPY_DKDIODE_KEYS_DKENTRIES_AND_TITLES_SECTION_DKENTRIES_DKEXTRA_PARAMS_ALIASESEXTRA_PARAMS_DISTANCEEXTRA_PARAMS_DISTANCE_ALIASESEXTRA_PARAMS_ENERGY_DEFAULT_VALID_KEYSEXTRA_PARAMS_ENERGY_DKEXTRA_PARAMS_ENERGY_DK_ALIASESEXTRA_PARAMS_ENERGY_VALID_KEYSEXTRA_PARAMS_SECTION_DKEXTRA_PARAMS_X_PIXEL_SIZE_DKEXTRA_PARAMS_X_PIXEL_SIZE_DK_ALIASESEXTRA_PARAMS_Y_PIXEL_SIZE_DKEXTRA_PARAMS_Y_PIXEL_SIZE_DK_ALIASESFIELD_OF_VIEW_DKFILE_EXTENSION_DKFLAT_TILES_ALIASESFLAT_TITLES_DKFRAME_TYPE_SECTION_DKGENERAL_SECTION_DKHANDLE_MACHINE_CURRENTIGNORE_BLISS_TOMO_CONFIGINIT_TITLES_DKINPUT_FILE_DKINPUT_FORMAT_DKKEYS_SECTION_DKLOG_LEVEL_DKNO_INPUT_DKOUTPUT_FILE_DKOVERWRITE_DKPCOTOMO_N_NXTOMO_DKPCOTOMO_SCAN_RANGE_DKPCOTOMO_SECTION_DKPCOTOMO_SHIFT_ANGLES_DKPCOTOMO_START_ANGLE_OFFSET_DKPROJ_TITLES_DKRAISES_ERROR_DKROT_ANGLE_DKSAMPLE_DETECTOR_DISTANCE_DKSINGLE_FILE_DKSUB_ENTRIES_TO_IGNOREVALID_CAMERA_DKX_PIXEL_SIZE_KEYS_DKX_TRANS_KEYS_DKY_PIXEL_SIZE_KEYS_DKY_ROT_KEYS_DKY_TRANS_KEYS_DKZSERIE_INIT_TITLES_DKZ_TRANS_KEYS_DKalignment_titlesbam_single_filecheck_tomo_ndark_titlesdata_frame_grpsdefault_copy_behaviordiode_keysentriesexposition_time_keysfield_of_viewfile_extensionflat_titlesformathandle_machine_currentignore_bliss_tomo_configinit_titlesinput_fileis_3d_xrdis_using_titlesReturn true if we want to use urls for darks, flats, projections instead of titles
is_xrdc_ctlog_levelmachine_electric_current_keysno_inputoutput_fileoverwriteparam_already_definedpcotomo_init_titlespcotomo_n_nxtomoif we want to take a subset of the NXtomo for the pcotomo we can define an interval.
pcotomo_shift_anglesIf provided then nb_loop and nb_turn values will be ignored and splitting will be done as follow:
projections_titlesraises_errorrequest_inputrotation_angle_keyssample_detector_distance_pathssingle_filesub_entries_to_ignorevalid_camera_namesx_pixel_size_pathsx_trans_keysy_pixel_size_pathsy_rot_keyy_trans_keysz_trans_keyszserie_init_titles- static from_dict(dict_: dict)[source]#
Create a HDF5Config object and set it from values contained in the dictionary :param dict dict_: settings dictionary :return: HDF5Config
- static get_extra_params_default_unit(key) str[source]#
return the default unit for the extra parameters that can be defined by the user
- property is_using_urls: bool#
Return true if we want to use urls for darks, flats, projections instead of titles
- property pcotomo_scan_range: Optional[float]#
if we want to take a subset of the NXtomo for the pcotomo we can define an interval. Interval must be in degree. If None we expect to take the full interval.
- property pcotomo_start_angle_offset: float#
If provided then nb_loop and nb_turn values will be ignored and splitting will be done as follow:
take a subselection of the NXtomo based on pcotomo_start_angle_offset and tomo_n
split this sub selection to tomo_n NXtomo
shift angle if requested
Angle is expected to be in degree (when set). The offset is always relative to the first projection angle value