Skip to content

Commit 0ec4d65

Browse files
committed
format
1 parent ee03155 commit 0ec4d65

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ogcore/utils.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,9 +1290,11 @@ def param_dump_json(p, path=None):
12901290
JSON (string): JSON on model parameters
12911291
"""
12921292
converted_data = {}
1293-
spec = p.specification(meta_data=False, include_empty=True, serializable=True, use_state=True)
1293+
spec = p.specification(
1294+
meta_data=False, include_empty=True, serializable=True, use_state=True
1295+
)
12941296
for key in p.keys():
1295-
val = dict(spec[key][0])['value']
1297+
val = dict(spec[key][0])["value"]
12961298
if isinstance(val, np.ndarray):
12971299
converted_data[key] = val.tolist()
12981300
else:
@@ -1313,4 +1315,4 @@ def param_dump_json(p, path=None):
13131315
with open(path, "w") as f:
13141316
f.write(json_str)
13151317
else:
1316-
return json_str
1318+
return json_str

0 commit comments

Comments
 (0)