Skip to content

Commit

Permalink
Fix relpath abspath (#214)
Browse files Browse the repository at this point in the history
This change needed by the Sumo team
  • Loading branch information
jcrivenaes authored Jun 16, 2022
1 parent f777af7 commit cfc7447
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fmu/dataio/dataio.py
Original file line number Diff line number Diff line change
Expand Up @@ -1125,8 +1125,8 @@ def _generate_aggrd_metadata(

template["tracklog"] = etempmeta["tracklog"]
template["file"] = etempmeta["file"] # actually only use the checksum_md5
template["file"]["relative_path"] = relpath
template["file"]["absolute_path"] = abspath
template["file"]["relative_path"] = str(relpath)
template["file"]["absolute_path"] = str(abspath) if abspath else None

# data section
if self.name:
Expand Down

0 comments on commit cfc7447

Please sign in to comment.