diff --git a/imas/ids_structure.py b/imas/ids_structure.py index fbc3042..4818ae0 100644 --- a/imas/ids_structure.py +++ b/imas/ids_structure.py @@ -57,7 +57,7 @@ def __init__(self, parent: IDSBase, metadata: IDSMetadata): def __getattr__(self, name): if name not in self._children: raise AttributeError( - f"IDS structure '{self._path}' has no attribute '{name}'" + f"IDS structure '{self.metadata.path_string}' has no attribute '{name}'" ) # Create child node child_meta = self._children[name]