コード例 #1
0
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
コード例 #2
0
ファイル: data_test.py プロジェクト: DiamondLightSource/Savu
    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))
コード例 #3
0
ファイル: test_utils.py プロジェクト: malte-storm/Savu
def plugin_runner(options):
    plugin_runner = PluginRunner(options)
    return plugin_runner._run_plugin_list()
コード例 #4
0
 def _run_plugin_list(self, options):
     plugin_runner = PluginRunner(options)
     exp = plugin_runner._run_plugin_list()
     return exp
コード例 #5
0
def run_protected_plugin_runner(options):
    plugin_runner = PluginRunner(options)
    exp = plugin_runner._run_plugin_list()
    return exp
コード例 #6
0
ファイル: test_utils.py プロジェクト: FedeMPouzols/Savu
def plugin_runner(options):
    plugin_runner = PluginRunner(options)
    return plugin_runner._run_plugin_list()
コード例 #7
0
def plugin_runner(options):
    # the real plugin runner runs a full plugin list
    plugin_runner = PluginRunner(options)
    return plugin_runner._run_plugin_list()
コード例 #8
0
def main():
    [options, args] = __option_parser()
    __check_input_params(args)
    options = _set_options(options, args)
    plugin_runner = PluginRunner(options)
    plugin_runner._run_plugin_list()
コード例 #9
0
def run_protected_plugin_runner(options):
    plugin_runner = PluginRunner(options)
    exp = plugin_runner._run_plugin_list()
    return exp
コード例 #10
0
ファイル: tomo_recon.py プロジェクト: FedeMPouzols/Savu
def main():
    [options, args] = __option_parser()
    __check_input_params(args)
    options = _set_options(options, args)
    plugin_runner = PluginRunner(options)
    plugin_runner._run_plugin_list()