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
cb5420d9
Commit
cb5420d9
authored
5 years ago
by
Mikhail Karnevskiy
Browse files
Options
Downloads
Patches
Plain Diff
Save command line to execute xfel_calibrate
parent
4e1e229b
No related branches found
No related tags found
2 merge requests
!298
Feat/dss cimprove master rebasing
,
!283
Feat: Save command line to execute xfel_calibrate
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xfel_calibrate/calibrate.py
+15
-0
15 additions, 0 deletions
xfel_calibrate/calibrate.py
with
15 additions
and
0 deletions
xfel_calibrate/calibrate.py
+
15
−
0
View file @
cb5420d9
...
...
@@ -543,6 +543,20 @@ def create_finalize_script(fmt_args, temp_path, job_list):
os
.
chmod
(
f_name
,
all_stats
)
def
save_executed_command
(
run_tmp_path
,
version
):
"""
Create a file with string used to execute `xfel_calibrate`
:param run_tmp_path: path to temporary directory for running job outputs
:parm version: git version of the pycalibration package
"""
f_name
=
"
{}/run_calibrate.sh
"
.
format
(
run_tmp_path
)
with
open
(
f_name
,
"
w
"
)
as
finfile
:
finfile
.
write
(
f
'
# pycalibration version:
{
version
}
\n
'
)
finfile
.
write
(
'
'
.
join
(
sys
.
argv
))
def
get_launcher_command
(
args
,
temp_path
,
dependent
,
job_list
):
"""
Return a slurm launcher command
...
...
@@ -826,6 +840,7 @@ def run():
# Write all input parameters to rst file to be included to final report
parms
=
parameter_values
(
parms
,
**
args
)
make_par_table
(
parms
,
temp_path
,
run_uuid
)
save_executed_command
(
run_tmp_path
,
version
)
# wait on all jobs to run and then finalize the run by creating a report from the notebooks
out_path
=
"
{}/{}/{}/{}
"
.
format
(
report_path
,
detector
.
upper
(),
...
...
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