Skip to content

Commit

Permalink
add error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mjohnson541 committed Feb 5, 2025
1 parent 2e68d60 commit 13a3d74
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pynta/almace/alCalc.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,13 @@ def __init__(

mace_fnames = sorted(self.get_fname_mlffs())[-self.num_committes:]

super().__init__(mace_fnames, **kwargs)

try:
super().__init__(mace_fnames, **kwargs)
except Exception as e:
logging.error(f"mace_fnames: {mace_fnames}")
logging.error(f"kwargs: {kwargs}")
raise e

def get_fname_mlffs(self, current=True):
"""Get filenames of MLFF models."""
mlff_fname_pat = os.path.join(self.dir_mlff, "{0}_{1}/*_swa.model")
Expand Down

0 comments on commit 13a3d74

Please sign in to comment.