Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postprocessing #73

Merged
merged 14 commits into from
Jul 29, 2021
Prev Previous commit
Next Next commit
old datfile multirun compatibility
  • Loading branch information
jordidj committed Jul 12, 2021
commit 9bb55aef705a0521741b2da9c4680f67021c5e32
6 changes: 4 additions & 2 deletions post_processing/pylbo/file_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,10 @@ def load_series(datfiles):
pylboLogger.info("eigenfunctions present in all datfiles")

# check presence of post-processed quantities
pp_present = set([ds.header["postprocessed_written"] for ds in series.datasets])
if len(pp_present) > 1:
pp_present = set([ds.header["postprocessed_written"] for ds in series.datasets if (ds.legolas_version >= "1.1.1")])
if len(pp_present) == 0:
pylboLogger.info("no post-processed quantities present")
elif len(pp_present) > 1:
pylboLogger.info("post-processed quantities present in some datfiles, but not all")
else:
if pp_present.pop():
Expand Down