Skip to content

Commit

Permalink
Merge pull request #14 from Exabyte-io/feature/SOF-7488
Browse files Browse the repository at this point in the history
update: add get_names function
  • Loading branch information
VsevolodX authored Nov 8, 2024
2 parents dcb6efe + f9ba523 commit 415fdf9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/py/mat3ra/standata/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ class Standata:
def get_as_list(cls) -> List[dict]:
return list(cls.data.filesMapByName.dictionary.values())

@classmethod
def get_names(cls) -> List[str]:
return list(cls.data.filesMapByName.dictionary.keys())

@classmethod
def get_by_name(cls, name: str) -> List[dict]:
"""
Expand Down

0 comments on commit 415fdf9

Please sign in to comment.