Skip to content

Commit

Permalink
expose file.relative_path on all child objects (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
adnejacobsen authored Apr 12, 2023
1 parent afb37e9 commit 66b3a46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/fmu/sumo/explorer/objects/_child.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ def format(self) -> str:
"""Object file format"""
return self._get_property(["data", "format"])

@property
def relative_path(self) -> str:
"""Object relative file path"""
return self._get_property(["file", "relative_path"])

@property
def blob(self) -> BytesIO:
"""Object blob"""
Expand Down
1 change: 1 addition & 0 deletions src/fmu/sumo/explorer/objects/_child_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"_sumo.status",
"access.asset",
"masterdata.smda.field",
"file.relative_path",
]


Expand Down

0 comments on commit 66b3a46

Please sign in to comment.