Added NoSuchNodeError to except in load_and_concat_data
This commit is contained in:
parent
a4c365c4a1
commit
ab3d9497d9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user