Skip to content

Commit

Permalink
Merge pull request #77 from jacquelinegarrahan/fix-keras-return
Browse files Browse the repository at this point in the history
Fixes for array processing and updates to docs
  • Loading branch information
jacquelinegarrahan authored Oct 19, 2022
2 parents 8ac285b + f625f57 commit a99aeae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions docs/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
- ImageOutputVariable
- ArrayInputVariable
- ArrayOutputVariable
- TableInputVariable
- TableOutputVariable
- TableVariable
rendering:
show_source: true
4 changes: 2 additions & 2 deletions lume_model/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ 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

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"])

Expand Down

0 comments on commit a99aeae

Please sign in to comment.