Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions dfpl/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,14 @@ def createArgsFromJson(jsonFile: str):
value = cli_value # Override JSON value with command-line value

# Append the argument and its value to the list
if key == "extra_metrics" and isinstance(value, list):
if isinstance(value, list):
arguments.append(cli_arg_key)
arguments.extend(value)
elif isinstance(value, bool):
if value:
arguments.append(cli_arg_key)
else:
arguments.extend([cli_arg_key, str(value)])

return arguments


Expand Down
3 changes: 3 additions & 0 deletions example/predictgnn.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{

"no_cache_mol": true,
"empty_cache": false,
"py/object": "dfpl.options.GnnOptions",
"test_path": "tests/data/smiles.csv",
"preds_path": "preds_dmpnn/DMPNN_preds.csv",
Expand Down