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_: 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_DEFAULT_VALID_KEYSEXTRA_PARAMS_ENERGY_DKEXTRA_PARAMS_ENERGY_DK_ALIASESEXTRA_PARAMS_SAMPLE_DETECTOR_DISTANCEEXTRA_PARAMS_SAMPLE_DETECTOR_DISTANCE_ALIASESEXTRA_PARAMS_SECTION_DKEXTRA_PARAMS_SOURCE_SAMPLE_DISTANCEEXTRA_PARAMS_SOURCE_SAMPLE_DISTANCE_ALIASESEXTRA_PARAMS_VALID_KEYSEXTRA_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_DKSAMPLE_X_KEYS_DKSAMPLE_Y_KEYS_DKSINGLE_FILE_DKSOURCE_SAMPLE_DISTANCE_DKSUB_ENTRIES_TO_IGNORETRANSLATION_Y_KEYS_DKTRANSLATION_Z_KEYS_DKVALID_CAMERA_DKX_PIXEL_SIZE_KEYS_DKY_PIXEL_SIZE_KEYS_DKZSERIE_INIT_TITLES_DKalignment_titles- rtype:
Iterable | None
bam_single_filecheck_tomo_ndark_titles- rtype:
Iterable | None
data_frame_grps- rtype:
tuple
default_copy_behavior- rtype:
bool
diode_keys- rtype:
Iterable
entries- rtype:
tuple | None
exposition_time_keys- rtype:
Iterable
field_of_view- rtype:
FieldOfView | None
file_extension- rtype:
flat_titles- rtype:
Iterable | None
handle_machine_currentignore_bliss_tomo_config- rtype:
bool
init_titles- rtype:
Iterable | None
input_file- rtype:
str | None
is_using_titles- rtype:
bool
Return true if we want to use urls for darks, flats, projections instead of titles
log_levelmachine_electric_current_keys- rtype:
Iterable
no_inputoutput_file- rtype:
str | None
overwrite- rtype:
bool
param_already_defined- rtype:
dict
pcotomo_init_titles- rtype:
Iterable | None
pcotomo_n_nxtomo- rtype:
int
if we want to take a subset of the NXtomo for the pcotomo we can define an interval.
pcotomo_shift_angles- rtype:
bool
If provided then nb_loop and nb_turn values will be ignored and splitting will be done as follow:
projections_titles- rtype:
Iterable | None
raises_errorrequest_input- rtype:
bool
rotation_angle_keys- rtype:
Iterable
sample_detector_distance_pathssample_x_keys- rtype:
Iterable
sample_y_keys- rtype:
Iterable
single_filesource_sample_distance_pathssub_entries_to_ignore- rtype:
tuple | None
translation_y_keys- rtype:
str
translation_z_keys- rtype:
Iterable
valid_camera_names- rtype:
tuple | None
x_pixel_size_paths- rtype:
Iterable
y_pixel_size_paths- rtype:
Iterable
zserie_init_titles- rtype:
Iterable | None
- static from_dict(dict_)[source]#
Create a HDF5Config object and set it from values contained in the dictionary :param_: settings dictionary :return: HDF5Config
- static get_extra_params_default_unit(key)[source]#
return the default unit for the extra parameters that can be defined by the user
- Return type:
str
- property is_using_urls: bool#
Return true if we want to use urls for darks, flats, projections instead of titles
- Return type:
bool
- property pcotomo_scan_range: float | None#
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.
- Return type:
float | None
- 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
- Return type:
float