示例#1
0
 def test_tomo1(self):
     options = tu.set_experiment('tomo')
     plugin = 'savu.plugins.test_plugin'
     loader_dict = {}
     data_dict = {'in_datasets': ['tomo', 'tomo'], 'out_datasets': ['test']}
     saver_dict = {}
     all_dicts = [loader_dict, data_dict, saver_dict]
     run_protected_plugin_runner_no_process_list(options, plugin,
                                                 data=all_dicts)
示例#2
0
 def test_tomo4(self):
     options = tu.set_experiment('tomo')
     plugin = 'savu.plugins.test_plugin'
     preview = ['10:-10:10:1', '10:-10:10:1', '10:-10:10:1']
     loader_dict = {'preview': preview}
     data_dict = {'in_datasets': ['tomo', 'tomo'], 'out_datasets': ['test']}
     all_dicts = [loader_dict, data_dict, {}]
     exp = run_protected_plugin_runner_no_process_list(options, plugin,
                                                       data=all_dicts)
     exp = self.assertEqual(exp.index['in_data']['test'].get_shape(),
                           (8, 12, 15))
示例#3
0
 def test_median_filter(self):
     options = tu.set_experiment('tomo')
     plugin = 'savu.plugins.filters.median_filter'
     run_protected_plugin_runner_no_process_list(options, plugin)
 def test_median_filter(self):
     options = tu.set_experiment('tomo')
     plugin = 'savu.plugins.filters.median_filter'
     run_protected_plugin_runner_no_process_list(options, plugin)
示例#5
0
 def test_band_pass(self):
     options = tu.set_experiment('tomo')
     plugin = 'savu.plugins.filters.band_pass'
     run_protected_plugin_runner_no_process_list(options, plugin)
示例#6
0
 def rest_ring_artefact_removal(self):
     options = tu.set_experiment('tomo')
     plugin = 'savu.plugins.filters.ring_artefact_removal'
     run_protected_plugin_runner_no_process_list(options, plugin)
示例#7
0
 def test_simple_recon(self):
     options = tu.set_experiment('tomo')
     plugin = 'savu.plugins.reconstructions.simple_recon'
     run_protected_plugin_runner_no_process_list(options, plugin)
示例#8
0
 def test_paganin1(self):
     options = tu.set_experiment('tomoRaw')
     plugin = 'savu.plugins.paganin_filter'
     run_protected_plugin_runner_no_process_list(options, plugin)
示例#9
0
 def test_sinogram_alignment(self):
     options = tu.set_experiment('tomo')
     plugin = 'savu.plugins.filters.sinogram_alignment'
     run_protected_plugin_runner_no_process_list(options, plugin)
示例#10
0
 def test_denoise_bregman_test(self):
     options = tu.set_experiment('tomo')
     plugin = 'savu.plugins.filters.denoise_bregman_filter'
     run_protected_plugin_runner_no_process_list(options, plugin)
示例#11
0
 def test_astra_recon_gpu(self):
     options = tu.set_experiment("tomo", process_names="GPU0")
     plugin = astra_recons.__name__ + ".astra_recon_gpu"
     run_protected_plugin_runner_no_process_list(options, plugin)
示例#12
0
 def test_astra_recon_cpu_stxm(self):
     options = tu.set_experiment('tomo')
     plugin = astra_recons.__name__ + '.astra_recon_cpu'
     run_protected_plugin_runner_no_process_list(options, plugin)
 def "r6"(self):
     options = tu.set_experiment("r7")
     plugin = "r8"
     run_protected_plugin_runner_no_process_list(options, plugin)