Remove duplicate operation_mode parameter in FastCCD notebook
Description
This fixes an issue in the FastCCD notebooks where the operation_mode
argument was duplicated, leading to
(pycalibration_venv) [xcaltst@max-exfl017 ~]$ python -m xfel_calibrate.calibrate fastccd DARK --slurm-scheduling 10 --request-time 2021-02-11T13:55:28 --slurm-name dark_CALLAB_fastccd_202031_p900113_rr9993 --report-to /gpfs/exfel/d/cal/caldb_store/xfel/reports/CALLAB/SCS_CDIDET_FCCD2M/dark/dark_900113_r9993_210211_135538 --cal-db-interface tcp://max-exfl016:8015#8044 --db-output --concurrency-par karabo_da --karabo-da DA05 --in-folder /gpfs/exfel/exp/CALLAB/202031/p900113/raw --out-folder /gpfs/exfel/u/usr/CALLAB/202031/p900113/CalOutput/dark/runs_9993/SCS_CDIDET_FCCD2M --karabo-id SCS_CDIDET_FCCD2M --operation-mode STANDARD_OPERATION --run 9993
Traceback (most recent call last):
File "/software/anaconda3/5.2/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/software/anaconda3/5.2/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/xcaltst/pycalibration_venv/lib/python3.6/site-packages/xfel_calibrate/calibrate.py", line 992, in <module>
sys.exit(run())
File "/home/xcaltst/pycalibration_venv/lib/python3.6/site-packages/xfel_calibrate/calibrate.py", line 766, in run
parser = make_extended_parser()
File "/home/xcaltst/pycalibration_venv/lib/python3.6/site-packages/xfel_calibrate/calibrate.py", line 354, in make_extended_parser
add_args_from_nb(nb, parser, cvar=cvar)
File "/home/xcaltst/pycalibration_venv/lib/python3.6/site-packages/xfel_calibrate/calibrate.py", line 419, in add_args_from_nb
required=required)
File "/software/anaconda3/5.2/lib/python3.6/argparse.py", line 1352, in add_argument
return self._add_action(action)
File "/software/anaconda3/5.2/lib/python3.6/argparse.py", line 1556, in _add_action
action = super(_ArgumentGroup, self)._add_action(action)
File "/software/anaconda3/5.2/lib/python3.6/argparse.py", line 1366, in _add_action
self._check_conflict(action)
File "/software/anaconda3/5.2/lib/python3.6/argparse.py", line 1505, in _check_conflict
conflict_handler(action, confl_optionals)
File "/software/anaconda3/5.2/lib/python3.6/argparse.py", line 1514, in _handle_conflict_error
raise ArgumentError(action, message % conflict_string)
argparse.ArgumentError: argument --operation-mode: conflicting option string: --operation-mode
How Has This Been Tested?
This was tested by triggering a dark request via MyMDC, where it failed previously.
Relevant Documents (optional)
Failed characterization request:
Successfully launched in progress characterization:
Types of changes
- Bug fix (non-breaking change which fixes an issue)
Checklist:
Reviewers
Edited by Cyril Danilevski