"karabo_da = ['-1'] # a list of data aggregators names, Default [-1] for selecting all data aggregators\n",
"karabo_da = ['-1'] # a list of data aggregators names, Default [-1] for selecting all data aggregators\n",
"receiver_template = \"{}CH0\" # inset for receiver devices\n",
"receiver_template = \"{}CH0\" # inset for receiver devices\n",
"path_template = 'RAW-R{:04d}-{}-S{:05d}.h5' # the template to use to access data\n",
"path_template = 'RAW-R{:04d}-{}-S{:05d}.h5' # the template to use to access data\n",
"instrument_source_template = '{}/DET/{}:xtdf' # path in the HDF5 file to images\n",
"instrument_source_template = '{}/DET/{}:xtdf' # path in the HDF5 file to images\n",
"index_source_template = 'INDEX/{}/DET/{}:xtdf/' # path in the HDF5 file to images\n",
"index_source_template = 'INDEX/{}/DET/{}:xtdf/' # path in the HDF5 file to images\n",
"ctrl_source_template = '{}/MDL/FPGA_COMP' # path to control information\n",
"ctrl_source_template = '{}/MDL/FPGA_COMP' # path to control information\n",
"karabo_id_control = \"SPB_IRU_AGIPD1M1\" # karabo-id for control device\n",
"karabo_id_control = \"MID_EXP_AGIPD1M1\" # karabo-id for control device\n",
"\n",
"\n",
"slopes_ff_from_files = \"\" # Path to locally stored SlopesFF and BadPixelsFF constants, loaded in precorrection notebook\n",
"slopes_ff_from_files = \"\" # Path to locally stored SlopesFF and BadPixelsFF constants, loaded in precorrection notebook\n",
"\n",
"\n",
...
@@ -88,7 +88,8 @@
...
@@ -88,7 +88,8 @@
"use_ppu_device = '' # Device ID for a pulse picker device to only process picked trains, empty string to disable\n",
"use_ppu_device = '' # Device ID for a pulse picker device to only process picked trains, empty string to disable\n",
"ppu_train_offset = 0 # When using the pulse picker, offset between the PPU's sequence start and actually picked train\n",
"ppu_train_offset = 0 # When using the pulse picker, offset between the PPU's sequence start and actually picked train\n",
"\n",
"\n",
"use_litframe_device = '' # Device ID for a lit frame finder device to only process illuminated frames, empty string to disable\n",
"use_litframe_finder = 'auto' # Process only illuminated frames: 'off' - disable, 'device' - use online device data, 'offline' - use offline algorithm, 'auto' - choose online/offline source automatically (default)\n",
"litframe_device_id = '' # Device ID for a lit frame finder device, empty string to auto detection\n",
"energy_threshold = -1000 # The low limit for the energy (uJ) exposed by frames subject to processing. If -1000, selection by pulse energy is disabled\n",
"energy_threshold = -1000 # The low limit for the energy (uJ) exposed by frames subject to processing. If -1000, selection by pulse energy is disabled\n",
"\n",
"\n",
"use_xgm_device = '' # DoocsXGM device ID to obtain actual photon energy, operating condition else.\n",
"use_xgm_device = '' # DoocsXGM device ID to obtain actual photon energy, operating condition else.\n",
mask_zero_std=False# Mask pixels with zero standard deviation across train
mask_zero_std=False# Mask pixels with zero standard deviation across train
low_medium_gap=False# 5 sigma separation in thresholding between low and medium gain
low_medium_gap=False# 5 sigma separation in thresholding between low and medium gain
round_photons=False# Round to absolute number of photons, only use with gain corrections
round_photons=False# Round to absolute number of photons, only use with gain corrections
# Optional auxiliary devices
# Optional auxiliary devices
use_ppu_device=''# Device ID for a pulse picker device to only process picked trains, empty string to disable
use_ppu_device=''# Device ID for a pulse picker device to only process picked trains, empty string to disable
ppu_train_offset=0# When using the pulse picker, offset between the PPU's sequence start and actually picked train
ppu_train_offset=0# When using the pulse picker, offset between the PPU's sequence start and actually picked train
use_litframe_device=''# Device ID for a lit frame finder device to only process illuminated frames, empty string to disable
use_litframe_finder='auto'# Process only illuminated frames: 'off' - disable, 'device' - use online device data, 'offline' - use offline algorithm, 'auto' - choose online/offline source automatically (default)
litframe_device_id=''# Device ID for a lit frame finder device, empty string to auto detection
energy_threshold=-1000# The low limit for the energy (uJ) exposed by frames subject to processing. If -1000, selection by pulse energy is disabled
energy_threshold=-1000# The low limit for the energy (uJ) exposed by frames subject to processing. If -1000, selection by pulse energy is disabled
use_xgm_device=''# DoocsXGM device ID to obtain actual photon energy, operating condition else.
use_xgm_device=''# DoocsXGM device ID to obtain actual photon energy, operating condition else.
# Output parameters
# Output parameters
recast_image_data=''# Cast data to a different dtype before saving
recast_image_data=''# Cast data to a different dtype before saving
compress_fields=['gain','mask']# Datasets in image group to compress.
compress_fields=['gain','mask']# Datasets in image group to compress.
# Plotting parameters
# Plotting parameters
skip_plots=False# exit after writing corrected files and metadata
skip_plots=False# exit after writing corrected files and metadata
cell_id_preview=1# cell Id used for preview in single-shot plots
cell_id_preview=1# cell Id used for preview in single-shot plots
# Parallelization parameters
# Parallelization parameters
chunk_size=1000# Size of chunk for image-wise correction
chunk_size=1000# Size of chunk for image-wise correction
n_cores_correct=16# Number of chunks to be processed in parallel
n_cores_correct=16# Number of chunks to be processed in parallel
n_cores_files=4# Number of files to be processed in parallel
n_cores_files=4# Number of files to be processed in parallel
sequences_per_node=2# number of sequence files per cluster node if run as SLURM job, set to 0 to not run SLURM parallel
sequences_per_node=2# number of sequence files per cluster node if run as SLURM job, set to 0 to not run SLURM parallel
max_nodes=8# Maximum number of SLURM jobs to split correction work into
max_nodes=8# Maximum number of SLURM jobs to split correction work into
max_tasks_per_worker=-1# the number of tasks a correction pool worker process can complete before it will exit and be replaced with a fresh worker process. Leave as -1 to keep worker alive as long as pool.
max_tasks_per_worker=-1# the number of tasks a correction pool worker process can complete before it will exit and be replaced with a fresh worker process. Leave as -1 to keep worker alive as long as pool.