Skip to content

Commit

Permalink
Formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
awicenec committed Nov 14, 2024
1 parent b41bb72 commit f11bfb2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions dlg_paletteGen/support_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ def import_using_name(mod_name: str, traverse: bool = False, err_log=True):
break
except Exception as e:
raise ValueError(
"Problem importing module %s, %s" % (mod, e)
f"Problem importing module {mod}, {e}"
) from e
logger.debug("Loaded module: %s", mod_name)
else:
Expand Down Expand Up @@ -718,7 +718,9 @@ def populateFields(parameters: dict, dd) -> dict:
logger.debug("Final type of parameter %s: %s", p, field[p]["type"])
if isinstance(field[p]["value"], numpy.ndarray):
try:
field[p]["value"] = field[p]["defaultValue"] = field[p]["value"].tolist()
field[p]["value"] = field[p]["defaultValue"] = field[p][
"value"
].tolist()
except NotImplementedError:
field[p]["value"] = []
if repr(field[p]["value"]) == "nan" and numpy.isnan(field[p]["value"]):
Expand Down Expand Up @@ -784,7 +786,9 @@ def populateDefaultFields(Node): # pylint: disable=invalid-name
et[n]["value"] = 2
et[n]["defaultValue"] = 2
et[n]["type"] = "Integer"
et[n]["description"] = "Estimate of execution time (in seconds) for this application."
et[n][
"description"
] = "Estimate of execution time (in seconds) for this application."
et[n]["parameterType"] = "ConstraintParameter"
Node["fields"].update(et)

Expand Down

0 comments on commit f11bfb2

Please sign in to comment.