Skip to content

Commit

Permalink
Default datafile to None
Browse files Browse the repository at this point in the history
  • Loading branch information
kjetilbjorke committed Oct 17, 2024
1 parent cf3c85b commit 367e121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fmu/sumo/sim2sumo/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def create_config_dict(config, datafile=None, datatype=None):
grid3d = simconfig.get("grid3d", False)

# Use the provided datafile or datatype if given, otherwise use simconfig
datafile = datafile if datafile is not None else simconfig.get("datafile", {})
datafile = datafile if datafile is not None else simconfig.get("datafile", None)
datatype = datatype if datatype is not None else simconfig.get("datatypes", None)

if datatype is None:
Expand Down

0 comments on commit 367e121

Please sign in to comment.