Skip to content

Commit ae066f3

Browse files
committed
FieldXmf._root is now private
1 parent 16dba49 commit ae066f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stagpy/stagyyparsers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,13 +860,13 @@ class FieldXmf:
860860
path: Path
861861

862862
@cached_property
863-
def root(self) -> Element:
863+
def _root(self) -> Element:
864864
return xmlET.parse(str(self.path)).getroot()
865865

866866
def get_snap(self, isnap: int) -> Element:
867867
# Domain, Temporal Collection, Snapshot
868868
# should check that this is indeed the required snapshot
869-
elt_snap = self.root[0][0][isnap]
869+
elt_snap = self._root[0][0][isnap]
870870
if elt_snap is None:
871871
raise ParsingError(self.path, f"Snapshot {isnap} not present")
872872
return elt_snap

0 commit comments

Comments
 (0)