def run_protected_plugin_runner_no_process_list(options, plugin, **kwargs): if 'data' in kwargs.keys(): tu.set_plugin_list(options, plugin, kwargs['data']) else: tu.set_plugin_list(options, plugin) plugin_runner = PluginRunner(options) exp = plugin_runner._run_plugin_list() return exp
def run_protected_plugin_runner_no_process_list(options, plugin, **kwargs): if 'data' in list(kwargs.keys()): tu.set_plugin_list(options, plugin, kwargs['data']) else: tu.set_plugin_list(options, plugin) plugin_runner = PluginRunner(options) exp = plugin_runner._run_plugin_list() return exp
def test_create_smaller_data_block(self): options = tu.set_experiment('tomo') plugin = 'savu.plugins.reshape.downsample_filter' tu.set_plugin_list(options, plugin) out_data_name = options['plugin_list'][1]['data']['out_datasets'][0] plugin_runner = PluginRunner(options) exp = plugin_runner._run_plugin_list() self.assertEqual(exp.index['in_data'][out_data_name].get_shape(), (91, 68, 80))
def framework_options_setup(self): key1 = 'reconstruction_type' key2 = 'number_of_iterations' key3 = 'in_datasets' key4 = 'out_datasets' params = {key1: 'FBP;CGLS', key2: '1;2;3', key3: 'tomo', key4: 'tomo'} options = tu.set_experiment('tomo') plugin = 'savu.plugins.reconstructions.astra_recons.astra_recon_cpu' tu.set_plugin_list(options, plugin, [{}, params, {}]) return options
def framework_options_setup(self): key1 = "preview" key2 = "FBP_filter" key3 = "center_of_rotation" key4 = "in_datasets" key5 = "out_datasets" params = {key1: [":", "0", ":"], key2: "ram-lak;hamming", key3: "85.0;85.5;86.0", key4: "tomo", key5: "tomo"} options = tu.set_experiment("tomo") plugin = "savu.plugins.reconstructions.astra_recons.astra_recon_cpu" tu.set_plugin_list(options, plugin, [{}, params, {}]) return options
def run_protected_plugin_runner_no_process_list(options, plugin, **kwargs): try: if 'data' in kwargs.keys(): tu.set_plugin_list(options, plugin, kwargs['data']) else: tu.set_plugin_list(options, plugin) plugin_runner = PluginRunner(options) exp = plugin_runner.run_plugin_list(options) return exp except ImportError as e: print("Failed to run test as libraries not available (%s)," % (e) + " passing test") pass
def framework_options_setup(self): key1 = 'interpolation' key2 = 'iterations' key3 = 'in_datasets' key4 = 'out_datasets' key5 = 'sino_pad_width' params = {key1: 'nearest;linear', key2: '1;2;3', key3: 'tomo', key4: 'tomo', key5: 0} options = tu.set_experiment('tomo') plugin = 'savu.plugins.reconstructions.scikitimage_sart' tu.set_plugin_list(options, plugin, [{}, params, {}]) return options
def framework_options_setup(self): key1 = 'preview' key2 = 'projector' key3 = 'centre_of_rotation' key4 = 'in_datasets' key5 = 'out_datasets' key6 = 'force_zero' params = {key1: [':', '0', ':'], key2: 'line;strip', key3: '85.0;85.5;86.0', key4: 'tomo', key5: 'tomo', key6: '[None, None]'} options = tu.set_experiment('tomo') plugin = 'savu.plugins.reconstructions.astra_recons.astra_recon_cpu' tu.set_plugin_list(options, plugin, [{}, params, {}]) return options
def framework_options_setup(self): key1 = 'n_iterations' key2 = 'algorithm' key3 = 'in_datasets' key4 = 'out_datasets' params = OrderedDict({ key1: '1;2;3', key2: 'FBP;CGLS', key3: 'tomo', key4: 'tomo' }) options = tu.set_experiment('tomo') plugin = 'savu.plugins.reconstructions.astra_recons.astra_recon_cpu' tu.set_plugin_list(options, plugin, [{}, params, {}]) return options
def framework_options_setup(self): key1 = 'interpolation' key2 = 'iterations' key3 = 'in_datasets' key4 = 'out_datasets' key5 = 'sino_pad_width' params = { key1: 'nearest;linear', key2: '1;2;3', key3: 'tomo', key4: 'tomo', key5: 0 } options = tu.set_experiment('tomo') plugin = 'savu.plugins.reconstructions.scikitimage_sart' tu.set_plugin_list(options, plugin, [{}, params, {}]) return options
def framework_options_setup(self): key1 = 'preview' key2 = 'FBP_filter' key3 = 'center_of_rotation' key4 = 'in_datasets' key5 = 'out_datasets' params = { key1: [':', '0', ':'], key2: 'ram-lak;hamming', key3: '85.0;85.5;86.0', key4: 'tomo', key5: 'tomo' } options = tu.set_experiment('tomo') plugin = 'savu.plugins.reconstructions.astra_recons.astra_recon_cpu' tu.set_plugin_list(options, plugin, [{}, params, {}]) return options
def framework_options_setup(self): key1 = 'preview' key2 = 'projector' key3 = 'centre_of_rotation' key4 = 'in_datasets' key5 = 'out_datasets' key6 = 'force_zero' params = { key1: [':', '0', ':'], key2: 'line;strip', key3: '85.0;85.5;86.0', key4: 'tomo', key5: 'tomo', key6: '[None, None]' } options = tu.set_experiment('tomo') plugin = 'savu.plugins.reconstructions.astra_recons.astra_recon_cpu' tu.set_plugin_list(options, plugin, [{}, params, {}]) return options