Skip to content

Commit

Permalink
MAINT: Remove redundant drop_nones from case.py
Browse files Browse the repository at this point in the history
  • Loading branch information
slangeveld committed Jul 3, 2024
1 parent 9d6543a commit 48fe5ac
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/fmu/dataio/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def generate_metadata(self) -> dict:
warnings.warn(exists_warning, UserWarning)
return {}

case_meta = internal.CaseSchema(
self._metadata = internal.CaseSchema(
masterdata=meta.Masterdata.model_validate(self.config["masterdata"]),
access=meta.Access.model_validate(self.config["access"]),
fmu=internal.FMUModelCase(
Expand All @@ -139,9 +139,6 @@ def generate_metadata(self) -> dict:
by_alias=True,
)

self._metadata = _utils.drop_nones(case_meta)

logger.info("The case metadata are now ready!")
return copy.deepcopy(self._metadata)

def export(self) -> str:
Expand Down

0 comments on commit 48fe5ac

Please sign in to comment.