Author: European XFEL Detector Group, Version: 1.0
Author: European XFEL Detector Group, Version: 1.0
%% Cell type:code id:818e24e8 tags:
%% Cell type:code id:818e24e8 tags:
``` python
``` python
in_folder="/gpfs/exfel/exp/DETLAB/202230/p900276/raw"# the folder to read data from, required
in_folder="/gpfs/exfel/exp/DETLAB/202230/p900276/raw"# the folder to read data from, required
out_folder="/gpfs/exfel/data/scratch/ahmedk/test/gotthard2/darks"# the folder to output to, required
out_folder="/gpfs/exfel/data/scratch/ahmedk/test/gotthard2/darks"# the folder to output to, required
run_high=10# run number for G0 dark run, required
run_high=10# run number for G0 dark run, required
run_med=10# run number for G1 dark run, required
run_med=10# run number for G1 dark run, required
run_low=10# run number for G2 dark run, required
run_low=10# run number for G2 dark run, required
sequences=[-1]# sequences to correct, set to [-1] for all, range allowed
sequences=[-1]# sequences to correct, set to [-1] for all, range allowed
sequences_per_node=1# number of sequence files per node if notebook executed through xfel-calibrate, set to 0 to not run SLURM parallel
sequences_per_node=1# number of sequence files per node if notebook executed through xfel-calibrate, set to 0 to not run SLURM parallel
# Parameters used to access raw data.
# Parameters used to access raw data.
karabo_id="DET_LAB_G2"# karabo prefix of Jungfrau devices
karabo_id="DET_LAB_G2"# karabo prefix of Jungfrau devices
karabo_da=["DA01"]# data aggregators
karabo_da=["DA01"]# data aggregators
receiver_template="GOT{:02d}"# receiver template used to read INSTRUMENT keys.
receiver_template="GOT{:02d}"# receiver template used to read INSTRUMENT keys.
control_template="CTRL{:02d}"# control template used to read CONTROL keys.
control_template="CTRL{:02d}"# control template used to read CONTROL keys.
instrument_source_template='{}/DET/{}:daqOutput'# template for source name (filled with karabo_id & receiver_id). e.g. 'SPB_IRDA_JF4M/DET/JNGFR01:daqOutput'
instrument_source_template='{}/DET/{}:daqOutput'# template for source name (filled with karabo_id & receiver_id). e.g. 'SPB_IRDA_JF4M/DET/JNGFR01:daqOutput'
ctrl_source_template='{}/DET/{}'# template for control source name (filled with karabo_id_control)
ctrl_source_template='{}/DET/{}'# template for control source name (filled with karabo_id_control)
karabo_id_control=""# if control is on a different ID, set to empty string if it is the same a karabo-id
karabo_id_control=""# if control is on a different ID, set to empty string if it is the same a karabo-id
# Parameters for the calibration database.
# Parameters for the calibration database.
use_dir_creation_date=True
use_dir_creation_date=True
cal_db_interface="tcp://max-exfl016:8020"# calibration DB interface to use
cal_db_interface="tcp://max-exfl016:8020"# calibration DB interface to use
cal_db_timeout=300000# timeout on caldb requests
cal_db_timeout=300000# timeout on caldb requests
db_output=False# Output constants to the calibration database
db_output=False# Output constants to the calibration database
local_output=True# Output constants locally
local_output=True# Output constants locally
# Conditions used for injected calibration constants.
# Conditions used for injected calibration constants.
# Parameters used during selecting raw data trains.
# Parameters used during selecting raw data trains.
min_trains=1# Minimum number of trains that should be available to process dark constants. Default 1.
min_trains=1# Minimum number of trains that should be available to process dark constants. Default 1.
max_trains=1000# Maximum number of trains to use for processing dark constants. Set to 0 to use all available trains.
max_trains=1000# Maximum number of trains to use for processing dark constants. Set to 0 to use all available trains.