Skip to content

Commit

Permalink
Fix minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrivenaes committed Jun 1, 2022
1 parent 7feb3e6 commit aadc4a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/fmu/dataio/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def detect_inside_rms() -> bool:
inside_rms = False

logger.info("Running truly in RMS GUI status: %s", inside_rms)
print(f"\nRunning truly in RMS GUI status: {inside_rms}\n")

return inside_rms


Expand Down
3 changes: 1 addition & 2 deletions src/fmu/dataio/dataio.py
Original file line number Diff line number Diff line change
Expand Up @@ -891,14 +891,13 @@ def export(self, force: bool = False, skip_null=True, **kwargs) -> Union[str, No
if self.generate_case_metadata(force=force, skip_null=skip_null, **kwargs):
export_metadata_file(self._metafile, self._metadata)
logger.info("METAFILE %s", self._metafile)
return str(self._metafile)
else:
warn(
"The metadatafile exists already. use 'force' or delete the "
"current case folder if a new metadata are requested.",
UserWarning,
)
return None
return str(self._metafile)


# ######################################################################################
Expand Down

0 comments on commit aadc4a7

Please sign in to comment.