Skip to content

Commit

Permalink
Ensure that ARMC jobs without .psf file actually return None
Browse files Browse the repository at this point in the history
  • Loading branch information
BvB93 authored Jan 21, 2020
1 parent f5c5ba3 commit 28abcb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FOX/armc_functions/sanitization.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ def _parse_psf(s: Settings, path: str) -> Optional[PSFContainer]:
psf = [_generate_psf(s, path, i) for i, _ in enumerate(s.molecule)]
del s.psf

if psf is None:
return psf
if all(i is None for i in psf):
return None

for md_settings, i in zip(s.md_settings, psf):
set_subsys_kind(md_settings, i.atoms)
Expand Down

0 comments on commit 28abcb1

Please sign in to comment.