Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Lukas Weber
load_leveller
Commits
d2cf0b9d
Commit
d2cf0b9d
authored
Oct 18, 2019
by
Lukas Weber
Browse files
fix jobstatus confusing new sweep counts with floats
parent
b84e46dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/loadleveller/jobstatus.py
View file @
d2cf0b9d
...
...
@@ -35,8 +35,8 @@ class JobProgress:
if
'parallel_tempering_parameter'
in
jobfile
.
jobconfig
.
keys
():
sweeps_per_global_update
=
jobfile
.
tasks
[
task
].
get
(
'pt_sweeps_per_global_update'
,
1
)
with
h5py
.
File
(
runfile
,
'r'
)
as
f
:
tp
.
sweeps
+=
f
[
'/sweeps'
][
0
]
//
sweeps_per_global_update
tp
.
therm_sweeps
=
max
(
tp
.
therm_sweeps
,
f
[
'/thermalization_sweeps'
][
0
]
//
sweeps_per_global_update
)
tp
.
sweeps
+=
int
(
f
[
'/sweeps'
][
0
]
//
sweeps_per_global_update
)
tp
.
therm_sweeps
=
max
(
tp
.
therm_sweeps
,
int
(
f
[
'/thermalization_sweeps'
][
0
]
//
sweeps_per_global_update
)
)
if
tp
.
sweeps
<
tp
.
target_sweeps
:
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment