Exemplo n.º 1
0
 def test_determine_acquisition_label_flywheel_dwi(self):
     """ """
     foldername = 'dwi'
     fname = 'sub-control01_ses-01_task-nback_dwi.nii.gz'
     hierarchy_type = 'Flywheel'
     # Call function
     acq_label = upload_bids.determine_acquisition_label(
             foldername,
             fname,
             hierarchy_type
             )
     # Assert base of the filename is used as the acquisition label
     self.assertEqual('task-nback_dwi', acq_label)
Exemplo n.º 2
0
 def test_determine_acquisition_label_flywheel_stimjson(self):
     """ """
     foldername = 'func'
     fname = 'sub-control01_ses-01_task-nback_recording-label1_stim.json'
     hierarchy_type = 'Flywheel'
     # Call function
     acq_label = upload_bids.determine_acquisition_label(
             foldername,
             fname,
             hierarchy_type
             )
     # Assert base of the filename is used as the acquisition label
     self.assertEqual('task-nback', acq_label)
Exemplo n.º 3
0
 def test_determine_acquisition_label_bids(self):
     """ """
     foldername = 'anat'
     fname = 'sub-01_ses-01_T1w.nii.gz'
     hierarchy_type = 'BIDS'
     # Call function
     acq_label = upload_bids.determine_acquisition_label(
             foldername,
             fname,
             hierarchy_type
             )
     # Assert the foldername is used as the acquisition label
     self.assertEqual(foldername, acq_label)