Skip to content

Commit

Permalink
Add method to retrieve keys in LindiH5pyFile class
Browse files Browse the repository at this point in the history
  • Loading branch information
magland committed Jul 17, 2024
1 parent ff05704 commit af32db8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lindi/LindiH5pyFile/LindiH5pyFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,9 @@ def get(self, name, default=None, getclass=False, getlink=False):
raise Exception("Getting class is not allowed")
return self._get_item(name, getlink=getlink, default=default)

def keys(self): # type: ignore
return self._the_group.keys()

def __iter__(self):
return self._the_group.__iter__()

Expand Down

0 comments on commit af32db8

Please sign in to comment.