From 3b2dc27c86e4b89d2a520d51d56a696743497325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjetil=20Bj=C3=B8rke?= Date: Thu, 17 Oct 2024 13:26:31 +0200 Subject: [PATCH] for submod in submods --- src/fmu/sumo/sim2sumo/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fmu/sumo/sim2sumo/common.py b/src/fmu/sumo/sim2sumo/common.py index 5489b09..09a93d6 100644 --- a/src/fmu/sumo/sim2sumo/common.py +++ b/src/fmu/sumo/sim2sumo/common.py @@ -215,7 +215,7 @@ def create_config_dict(config, datafile=None, datatype=None): datafiles_paths = find_datafiles(datafile) for datafile_path in datafiles_paths: sim2sumoconfig[datafile_path] = {} - for submod in datatype or []: + for submod in submods or []: options = simconfig.get("options", {"arrow": True}) sim2sumoconfig[datafile_path][submod] = filter_options(submod, options) sim2sumoconfig[datafile_path]["grid3d"] = grid3d