Skip to content
Snippets Groups Projects

Reproducibility, step 1

Merged Thomas Kluyver requested to merge feat/reproducibility into master
1 file
+ 12
0
Compare changes
  • Side-by-side
  • Inline
@@ -74,6 +74,9 @@ def make_initial_parser(**kwargs):
default=False,
help="Do not run as a cluster job")
parser.add_argument('--prepare-only', action="store_true",
help="Prepare notebooks but don't run them")
parser.add_argument('--report-to', type=str,
help='Filename (and optionally path) for output'
' report')
@@ -1107,7+1110,7 @@
if (cvals is None or cvals == [-1]) and concurrency_defval is not None:
print(f"Concurrency parameter '{concurrency_par}' "
f"is taken from notebooks.py")
cvals = concurrency_defval if isinstance(concurrency_defval, (list, tuple)) else range(concurrency_defval)
if cvals is None:
defcval = get_par_attr(parms, concurrency_par, 'value')
@@ -1170,7+1173,7 @@
# Save information about jobs for reproducibility
job_group.save()
if args['prepare_only']:
print("Files prepared, not executing now (--prepare-only option).")
print("To execute the notebooks, run:")
rpt_opts = ''
if user_venv is not None:
rpt_opts = f'--python {python_exe}'
print(f" python -m xfel_calibrate.repeat {run_tmp_path} {rpt_opts}")
return
submission_time = datetime.now().strftime('%Y-%m-%dT%H:%M:%S')
# Launch the calibration work
Loading