File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1290,9 +1290,11 @@ def param_dump_json(p, path=None):
1290
1290
JSON (string): JSON on model parameters
1291
1291
"""
1292
1292
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
+ )
1294
1296
for key in p .keys ():
1295
- val = dict (spec [key ][0 ])[' value' ]
1297
+ val = dict (spec [key ][0 ])[" value" ]
1296
1298
if isinstance (val , np .ndarray ):
1297
1299
converted_data [key ] = val .tolist ()
1298
1300
else :
@@ -1313,4 +1315,4 @@ def param_dump_json(p, path=None):
1313
1315
with open (path , "w" ) as f :
1314
1316
f .write (json_str )
1315
1317
else :
1316
- return json_str
1318
+ return json_str
You can’t perform that action at this time.
0 commit comments