Unverified Commit a91aa312 authored by Henri Payno's avatar Henri Payno
Browse files

[h52nx] create a dedicated EXTRA_PARAMS_ENERGY_DEFAULT_VALID_KEYS for the...

[h52nx] create a dedicated EXTRA_PARAMS_ENERGY_DEFAULT_VALID_KEYS for the documentation of the 'extra params' in the configuration file
parent 2fdeb7c0
Pipeline #59939 passed with stages
in 6 minutes and 6 seconds
......@@ -263,14 +263,18 @@ class TomoHDF5Config:
EXTRA_PARAMS_DISTANCE = "detector_sample_distance_m"
EXTRA_PARAMS_DISTANCE_ALIASES = ("detector_sample_distance",)
EXTRA_PARAMS_ENERGY_VALID_KEYS = (
EXTRA_PARAMS_ENERGY_DEFAULT_VALID_KEYS = (
EXTRA_PARAMS_ENERGY_DK,
*EXTRA_PARAMS_ENERGY_DK_ALIASES,
EXTRA_PARAMS_X_PIXEL_SIZE_DK,
*EXTRA_PARAMS_X_PIXEL_SIZE_DK_ALIASES,
EXTRA_PARAMS_Y_PIXEL_SIZE_DK,
*EXTRA_PARAMS_Y_PIXEL_SIZE_DK_ALIASES,
EXTRA_PARAMS_DISTANCE,
)
EXTRA_PARAMS_ENERGY_VALID_KEYS = (
*EXTRA_PARAMS_ENERGY_DEFAULT_VALID_KEYS,
*EXTRA_PARAMS_ENERGY_DK_ALIASES,
*EXTRA_PARAMS_X_PIXEL_SIZE_DK_ALIASES,
*EXTRA_PARAMS_Y_PIXEL_SIZE_DK_ALIASES,
*EXTRA_PARAMS_DISTANCE_ALIASES,
)
......@@ -284,7 +288,7 @@ class TomoHDF5Config:
COMMENTS_EXTRA_PARAMS_SECTION = {
EXTRA_PARAMS_SECTION_DK: "optional section\n"
"# you can predefined values which are missing in the input .h5 file\n"
"# Handled parameters are {}".format(EXTRA_PARAMS_ENERGY_VALID_KEYS)
"# Handled parameters are {}".format(EXTRA_PARAMS_ENERGY_DEFAULT_VALID_KEYS)
}
COMMENTS = COMMENTS_GENERAL_SECTION
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment