From de5410f0d903964d1e3802bd6d0be6eb3fc8a62b Mon Sep 17 00:00:00 2001 From: Jacqueline Garrahan Date: Wed, 19 Oct 2022 12:50:39 -0700 Subject: [PATCH 1/3] Check in table variable --- docs/variables.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/variables.md b/docs/variables.md index eeb0ad4..4eebf41 100644 --- a/docs/variables.md +++ b/docs/variables.md @@ -9,7 +9,6 @@ - ImageOutputVariable - ArrayInputVariable - ArrayOutputVariable - - TableInputVariable - - TableOutputVariable + - TableVariable rendering: show_source: true From 0576e6c10365e8ebc65100e4af9f8141cc21bd58 Mon Sep 17 00:00:00 2001 From: Jacqueline Garrahan Date: Wed, 19 Oct 2022 12:51:55 -0700 Subject: [PATCH 2/3] Fix bug in array string variable load --- lume_model/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lume_model/utils.py b/lume_model/utils.py index f3dca8e..2484d07 100644 --- a/lume_model/utils.py +++ b/lume_model/utils.py @@ -132,7 +132,7 @@ def parse_variables(config: dict) -> Tuple[dict]: pass if isinstance(variable_config["default"], (str,)) and ( - value_type is None or value_type != "str" + value_type is None or value_type != "string" ): variable_config["default"] = np.load(variable_config["default"]) From f625f574fcde3ca558345bae9921569f836ebb39 Mon Sep 17 00:00:00 2001 From: Jacqueline Garrahan Date: Wed, 19 Oct 2022 12:52:13 -0700 Subject: [PATCH 3/3] Fix bug in array string variable load --- lume_model/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lume_model/utils.py b/lume_model/utils.py index 2484d07..618797a 100644 --- a/lume_model/utils.py +++ b/lume_model/utils.py @@ -127,7 +127,7 @@ def parse_variables(config: dict) -> Tuple[dict]: if ( isinstance(variable_config["default"], (str,)) and value_type is not None - and value_type == "str" + and value_type == "string" ): pass