def test_simulate_asl_full_physio_outputs(self): phy.simulate_asl_full_physio(self.tmp_path) def makefn(fn): return op.join(self.tmp_path, fn) self.assertTrue(op.exists(makefn('flow_induction.nii'))) self.assertTrue(op.exists(makefn('neural_efficacies_audio.nii')))
def test_simulate_asl_full_physio_outputs(self): phy.simulate_asl_full_physio(self.tmp_path) def makefn(fn): return op.join(self.tmp_path, fn) self.assertTrue(op.exists(makefn('flow_induction.nii'))) self.assertTrue(op.exists(makefn('neural_efficacies_audio.nii')))
def test_simulate_asl_full_physio_outputs(self): pyhrf.verbose.set_verbosity(1) phy.simulate_asl_full_physio(self.tmp_path) def makefn(fn): return op.join(self.tmp_path, fn) self.assertTrue(op.exists(makefn("flow_induction.nii"))) self.assertTrue(op.exists(makefn("neural_efficacies_audio.nii")))
def test_simulate_asl_full_physio_outputs(self): # pyhrf.verbose.set_verbosity(0) pyhrf.logger.setLevel(logging.WARNING) phy.simulate_asl_full_physio(self.tmp_path) def makefn(fn): return op.join(self.tmp_path, fn) self.assertTrue(op.exists(makefn('flow_induction.nii'))) self.assertTrue(op.exists(makefn('neural_efficacies_audio.nii')))
def test_simulate_asl_full_physio(self): r = phy.simulate_asl_full_physio() # let's just test the shapes of objects and the presence of some # physio-specific simulation items item_names = r.keys() self.assertIn('perf_stim_induced', item_names) self.assertIn('flow_induction', item_names) self.assertIn('perf_stim_induced', item_names) self.assertEqual(r['labels_vol'].shape, (3, 1, 2, 2))
def test_simulate_asl_full_physio(self): r = phy.simulate_asl_full_physio() # let's just test the shapes of objects and the presence of some # physio-specific simulation items item_names = r.keys() self.assertIn('perf_stim_induced', item_names) self.assertIn('flow_induction', item_names) self.assertIn('perf_stim_induced', item_names) self.assertEqual(r['labels_vol'].shape, (3, 1, 2, 2))
def test_simulate_asl_full_physio(self): pyhrf.verbose.set_verbosity(0) r = phy.simulate_asl_full_physio() # let's just test the shapes of objects and the presence of some # physio-specific simulation items item_names = r.keys() self.assertIn("perf_stim_induced", item_names) self.assertIn("flow_induction", item_names) self.assertIn("perf_stim_induced", item_names) self.assertEqual(r["labels_vol"].shape, (3, 1, 2, 2)) # cond, spatial axes self.assertEqual(r["bold"].shape, (297, 4)) # nb scans, flat spatial axis
def test_simulate_asl_full_physio(self): # pyhrf.verbose.set_verbosity(0) pyhrf.logger.setLevel(logging.WARNING) r = phy.simulate_asl_full_physio() # let's just test the shapes of objects and the presence of some # physio-specific simulation items item_names = r.keys() self.assertIn('perf_stim_induced', item_names) self.assertIn('flow_induction', item_names) self.assertIn('perf_stim_induced', item_names) # cond, spatial axes self.assertEqual(r['labels_vol'].shape, (3, 1, 2, 2))