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
2a0dbd9c
Commit
2a0dbd9c
authored
5 years ago
by
Mikhail Karnevskiy
Browse files
Options
Downloads
Patches
Plain Diff
Small code refactoring
parent
7f964e67
No related branches found
No related tags found
1 merge request
!74
Feat: Add summary job option
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xfel_calibrate/calibrate.py
+3
-1
3 additions, 1 deletion
xfel_calibrate/calibrate.py
with
3 additions
and
1 deletion
xfel_calibrate/calibrate.py
+
3
−
1
View file @
2a0dbd9c
...
...
@@ -642,6 +642,7 @@ def run():
break
for
cnum
,
cval
in
enumerate
(
cvals
):
# Job is not final if there are dependent notebooks
jobid
=
concurrent_run
(
run_tmp_path
,
nb
,
notebook
,
args
,
cvar
,
[
cval
,
]
if
not
isinstance
(
cval
,
list
)
and
cvtype
is
list
else
cval
,
...
...
@@ -658,9 +659,10 @@ def run():
"
{}/{}
"
.
format
(
os
.
path
.
dirname
(
__file__
),
notebook
))
with
open
(
notebook_path
,
"
r
"
)
as
f
:
nb
=
nbformat
.
read
(
f
,
as_version
=
4
)
final_job
=
i
==
len
(
dep_notebooks
)
-
1
jobid
=
concurrent_run
(
run_tmp_path
,
nb
,
os
.
path
.
basename
(
notebook
),
args
,
final_job
=
i
==
len
(
dep_notebooks
)
-
1
,
final_job
=
final_job
,
job_list
=
joblist
,
fmtcmd
=
fmtcmd
,
cluster_cores
=
cluster_cores
,
sequential
=
sequential
,
priority
=
priority
,
...
...
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