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
abb78199
Commit
abb78199
authored
2 weeks ago
by
Thomas Kluyver
Browse files
Options
Downloads
Patches
Plain Diff
Flush after printing
parent
a2c2f758
No related branches found
Branches containing commit
No related tags found
1 merge request
!1142
Allow for call to sacct failing in finalize jobs
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/xfel_calibrate/finalize.py
+2
-2
2 additions, 2 deletions
src/xfel_calibrate/finalize.py
with
2 additions
and
2 deletions
src/xfel_calibrate/finalize.py
+
2
−
2
View file @
abb78199
...
...
@@ -136,9 +136,9 @@ def get_job_info(jobs: List[str], fmt: List[str]) -> List[List[str]]:
if
res
.
returncode
==
0
:
lines
=
res
.
stdout
.
split
(
"
\n
"
)
else
:
print
(
f
"
Call to sacct failed (exit status
{
res
.
returncode
}
"
)
print
(
f
"
Call to sacct failed (exit status
{
res
.
returncode
}
)
"
,
flush
=
True
)
if
res
.
stdout
:
print
(
res
.
stdout
)
print
(
res
.
stdout
,
flush
=
True
)
lines
=
[]
missing_info
=
[
"
not-found
"
]
*
len
(
fmt
)
...
...
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