Skip to content

Commit fd89898

Browse files
committed
rm FieldXmf.get_snap
1 parent 325371d commit fd89898

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

stagpy/stagyyparsers.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -932,14 +932,6 @@ def __getitem__(self, isnap: int) -> XmfEntry:
932932
except KeyError:
933933
raise ParsingError(self.path, f"no data for snapshot {isnap}")
934934

935-
def get_snap(self, isnap: int) -> Element:
936-
# Domain, Temporal Collection, Snapshot
937-
# should check that this is indeed the required snapshot
938-
elt_snap = self._root[0][0][isnap]
939-
if elt_snap is None:
940-
raise ParsingError(self.path, f"Snapshot {isnap} not present")
941-
return elt_snap
942-
943935

944936
def read_geom_h5(xdmf: FieldXmf, snapshot: int) -> dict[str, Any]:
945937
"""Extract geometry information from hdf5 files.

0 commit comments

Comments
 (0)