Skip to content

Commit

Permalink
FIX: rename data and json sinkers
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastientourbier committed Jun 13, 2020
1 parent b631db1 commit ecd6ffd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pymialsrtk/pipelines/anatomical/srr.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,8 @@ def create_workflow(bids_dir, output_dir, subject, p_stacksOrder, srID, session=



datasink = Node(DataSink(), name='sinker')
datasink = Node(DataSink(), name='data_sinker')
datasink.inputs.base_directory = final_res_dir


# JSON file SRTV
output_dict = {}
Expand All @@ -215,7 +214,7 @@ def create_workflow(bids_dir, output_dir, subject, p_stacksOrder, srID, session=
output_dict["CustomMetaData"]["Optimization time step"] = deltatTV
output_dict["CustomMetaData"]["Primal/dual loops"] = primal_dual_loops

dictsink = JSONFileSink(name='jsonsinker')
dictsink = JSONFileSink(name='json_sinker')
dictsink.inputs.in_dict = output_dict

dictsink.inputs.out_file = os.path.join(final_res_dir, 'anat', sub_ses+'_rec-SR'+'_id-'+str(srID)+'_T2w.json')
Expand Down

0 comments on commit ecd6ffd

Please sign in to comment.