Example #1
0
 def test_missing_both_fmri_prep_files(self):
     '''Expect FileNotFoundError when neither fmri_prep nor fmri_prep_aroma
     were specified.'''
     denoise = Denoise(
         conf_prep=self.conf_prep,
         pipeline=self.pipeline,
         output_dir=self.out_dir.name,
     )
     with self.assertRaises(FileNotFoundError):
         denoise.run()
Example #2
0
 def test_missing_fmri_prep(self):
     '''Expect FileNotFoundError if pipeline without aroma is selected but 
     only fmri_prep_aroma is provided.'''
     self.pipeline['aroma'] = False
     denoise = Denoise(
         fmri_prep_aroma=self.fmri_prep_aroma,
         conf_prep=self.conf_prep,
         pipeline=self.pipeline,
         output_dir=self.out_dir.name,
     )
     with self.assertRaises(FileNotFoundError):
         denoise.run()
Example #3
0
    def test_missing_noaroma_files_on_aroma_pipeline(self):
        self.pipeline['aroma'] = True

        denoise = Denoise(fmri_prep_aroma=self.fmri_prep,
                          conf_prep=self.conf_prep,
                          pipeline=self.pipeline,
                          output_dir=self.out_dir.name)

        def _(runtime):
            denoise._validate_fmri_prep_files()
            return runtime

        denoise._run_interface = _
        denoise.run()