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
4213b4ac
Commit
4213b4ac
authored
Aug 27, 2019
by
Lukas Weber
Browse files
make loadl r --force look at the last dump
parent
13f89b74
Changes
2
Hide whitespace changes
Inline
Side-by-side
python/loadl
View file @
4213b4ac
...
...
@@ -50,7 +50,7 @@ def run():
# check age of the different files
binary_modtime
=
os
.
stat
(
job
.
jobconfig
[
'mc_binary'
]).
st_mtime
try
:
f
=
next
(
glob
.
iglob
(
'{}.data/
*
/*.h5'
.
format
(
job
.
jobname
)))
# only check one of the output files for speed
f
=
next
(
glob
.
iglob
(
'{}.data/
{}
/*.h5'
.
format
(
job
.
jobname
,
job
.
tasks
.
keys
()[
-
1
]
)))
# only check one of the output files for speed
data_modtime
=
os
.
stat
(
f
).
st_mtime
label
=
'Warning'
if
args_run
.
force
else
'Error'
...
...
python/loadleveller/mcextract.py
View file @
4213b4ac
...
...
@@ -31,9 +31,9 @@ class MCArchive:
for
obs
,
value
in
task
[
'results'
].
items
():
o
=
self
.
observables
[
obs
]
o
.
rebinning_bin_length
[
i
]
=
int
(
value
[
'rebinning_bin_length'
]
)
o
.
rebinning_bin_count
[
i
]
=
int
(
value
[
'rebinning_bin_count'
]
)
o
.
autocorrelation_time
[
i
]
=
float
(
value
[
'autocorrelation_time'
]
)
o
.
rebinning_bin_length
[
i
]
=
int
(
value
.
get
(
'rebinning_bin_length'
,
0
)
)
o
.
rebinning_bin_count
[
i
]
=
int
(
value
.
get
(
'rebinning_bin_count'
,
0
)
)
o
.
autocorrelation_time
[
i
]
=
float
(
value
.
get
(
'autocorrelation_time'
,
0
)
)
o
.
mean
[
i
]
=
np
.
array
(
value
[
'mean'
],
dtype
=
float
)
o
.
error
[
i
]
=
np
.
array
(
value
[
'error'
],
dtype
=
float
)
...
...
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