示例#1
0
 def test_parse_pipelines_mix(self):
     """Checks if parser accepts custom pipeline mixed with fmridenise.pipeline"""
     addition = join(dirname(__file__), "custom_pipeline.json")
     custom = self.all_pipelines_valid.copy()
     custom.add(addition)
     paths = parse_pipelines(custom)
     self.assertSetEqual(paths, custom)
示例#2
0
 def test_parse_pipelines_known_pipeline(self):
     selected = "pipeline-24HMP_8Phys_SpikeReg_4GS"
     selected_path = {(join(self.pipelines_dir, selected) + ".json")}
     paths = parse_pipelines([
         selected
     ])  # __main__ always return list of paths/selected pipelines names
     self.assertSetEqual(paths, selected_path)
示例#3
0
 def test_parse_pipelines_known_pipeline(self):
     """Checks if parser accepts pipeline from fmridenoise selected by name"""
     selected = "pipeline-24HMP_8Phys_SpikeReg_4GS"
     selected_path = {(join(self.pipelines_dir, selected) + ".json")}
     paths = parse_pipelines([
         selected
     ])  # __main__ always return list of paths/selected pipelines names
     self.assertSetEqual(paths, selected_path)
示例#4
0
 def test_parse_pipelines_mix(self):
     addition = join(dirname(__file__), "custom_pipeline.json")
     custom = self.all_pipelines_valid.copy()
     custom.add(addition)
     paths = parse_pipelines(custom)
     self.assertSetEqual(paths, custom)
示例#5
0
 def test_parse_pipelines_custom(self):
     custom = {join(dirname(__file__), "custom_pipeline.json")}
     paths = parse_pipelines(custom)
     self.assertSetEqual(custom, paths)
示例#6
0
 def test_parse_pipelines_without_custom_noicaaroma(self):
     paths = parse_pipelines("all", False)
     self.assertSetEqual(self.noicaaroma_pipelines_valid, paths)
示例#7
0
 def test_parse_pipelines_without_custom(self):
     paths = parse_pipelines("all", True)
     self.assertSetEqual(self.all_pipelines_valid, paths)
示例#8
0
 def test_parse_pipelines_custom(self):
     """Checks if parser accepts only custom pipeline"""
     custom = {join(dirname(__file__), "custom_pipeline.json")}
     paths = parse_pipelines(custom)
     self.assertSetEqual(custom, paths)
示例#9
0
 def test_parse_pipelines_without_custom(self):
     """Checks if parser accepts all pipelines from fmridenoise.pipeline"""
     paths = parse_pipelines("all")
     self.assertSetEqual(self.all_pipelines_valid, paths)