We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16dba49 commit ae066f3Copy full SHA for ae066f3
stagpy/stagyyparsers.py
@@ -860,13 +860,13 @@ class FieldXmf:
860
path: Path
861
862
@cached_property
863
- def root(self) -> Element:
+ def _root(self) -> Element:
864
return xmlET.parse(str(self.path)).getroot()
865
866
def get_snap(self, isnap: int) -> Element:
867
# Domain, Temporal Collection, Snapshot
868
# should check that this is indeed the required snapshot
869
- elt_snap = self.root[0][0][isnap]
+ elt_snap = self._root[0][0][isnap]
870
if elt_snap is None:
871
raise ParsingError(self.path, f"Snapshot {isnap} not present")
872
return elt_snap
0 commit comments