From ab3d9497d996625c5e1f1a0623b406d793ce06c3 Mon Sep 17 00:00:00 2001 From: Sebastian Kloth Date: Sun, 19 Nov 2023 12:18:52 +0100 Subject: [PATCH] Added NoSuchNodeError to except in load_and_concat_data --- src/mdevaluate/system.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mdevaluate/system.py b/src/mdevaluate/system.py index 0541c35..17936ad 100644 --- a/src/mdevaluate/system.py +++ b/src/mdevaluate/system.py @@ -4,7 +4,7 @@ from subprocess import run from typing import Iterable import pandas as pd - +from tables import NoSuchNodeError @dataclass(kw_only=True) class MDSystem(abc.ABC): @@ -52,6 +52,6 @@ def load_and_concat_data(systems: Iterable[MDSystem], key: str, verbose: bool = data.append(system.load_results(key=key)) if verbose: print(f"Load {system}") - except (FileNotFoundError, KeyError): + except (FileNotFoundError, KeyError, NoSuchNodeError): continue return pd.concat(data, ignore_index=True)