Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pycalibration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
calibration
pycalibration
Commits
a9b2a640
Commit
a9b2a640
authored
3 years ago
by
Thomas Kluyver
Browse files
Options
Downloads
Patches
Plain Diff
Add --prepare-only option for xfel-calibrate
parent
38f265e2
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/xfel_calibrate/calibrate.py
+12
-0
12 additions, 0 deletions
src/xfel_calibrate/calibrate.py
with
12 additions
and
0 deletions
src/xfel_calibrate/calibrate.py
+
12
−
0
View file @
a9b2a640
...
...
@@ -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
'
)
...
...
@@ -1170,6 +1173,15 @@ def run():
# 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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment