Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
PORTER Edward
GWHMC
Commits
eefd076f
Commit
eefd076f
authored
Mar 31, 2021
by
Marc Arene
Browse files
Exiting before discarding Phase1 samples if phase 3 not meant to be run
parent
120212bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
Codes/main.py
Codes/main.py
+8
-0
No files found.
Codes/main.py
View file @
eefd076f
...
...
@@ -1203,6 +1203,14 @@ if __name__ == '__main__':
if
not
(
phase3_ongoing
):
# Check whether user only wants to run Phases I and II,
# in which case we don't discard Phase I samples yet otherwise
# an empty file will be saved and the future load will see
# sampler.samples = [] which will bug the derivations of scales
# from the covariance matrix
if
n_traj_already_run
==
sampler
.
n_traj_fit
:
cut
.
logger
.
info
(
f
"Only Phase I and II were asked to be run as n_traj_fit =
{
sampler
.
n_traj_fit
}
. Quitting here."
)
sys
.
exit
()
cut
.
logger
.
info
(
"----------------------------------------------------------------------------"
)
cut
.
logger
.
info
(
"PHASE 2.3 : SCALES"
)
old_scales
=
sampler
.
scales
.
copy
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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