Skip to content

Commit

Permalink
json fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wiheto committed Apr 25, 2020
1 parent 9faa08d commit 8e3d106
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions teneto/classes/bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ def run(self, run_func, input_params, output_desc=None, output_pipeline_name=Non
if 'sidecar' in input_params:
input_params['sidecar'] = 'Loaded automatically via TenetoBIDS'
# Loop through input params content and make any nparray input to list for sidecar
sidecar['TenetoFunction']['Parameters'] = {}
for key, value in input_params.items():
if not teneto.utils.is_jsonable(value):
if isinstance(input_params[key], np.ndarray):
Expand Down

0 comments on commit 8e3d106

Please sign in to comment.