Skip to content

Commit

Permalink
Fix issue with aggregated table
Browse files Browse the repository at this point in the history
  • Loading branch information
alifbe authored and jcrivenaes committed Nov 8, 2022
1 parent e11cd39 commit 26729a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fmu/dataio/dataio.py
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@ def _generate_aggrd_metadata(
"masterdata": self.source_metadata[0]["masterdata"],
"model": self.source_metadata[0]["fmu"]["model"],
}
etemp = ExportData(config=fakeconfig)
etemp = ExportData(config=fakeconfig, name=self.name)
etempmeta = etemp.generate_metadata(obj, compute_md5=compute_md5)

template["tracklog"] = etempmeta["tracklog"]
Expand All @@ -1219,8 +1219,8 @@ def _generate_aggrd_metadata(
template["data"]["name"] = self.name
if self.tagname:
template["data"]["tagname"] = self.tagname

template["data"]["bbox"] = etempmeta["data"]["bbox"]
if etempmeta["data"].get("bbox"):
template["data"]["bbox"] = etempmeta["data"]["bbox"]

self._metadata = template

Expand Down

0 comments on commit 26729a9

Please sign in to comment.