From 57d4d84890de2fe948f9b717efc2ae9d707e4656 Mon Sep 17 00:00:00 2001 From: Jared Duffey Date: Fri, 19 Apr 2024 13:41:32 -0400 Subject: [PATCH] Added example usage of PreflightValue to ExampleFilter1 Signed-off-by: Jared Duffey --- wrapping/python/plugins/ExamplePlugin/ExampleFilter1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrapping/python/plugins/ExamplePlugin/ExampleFilter1.py b/wrapping/python/plugins/ExamplePlugin/ExampleFilter1.py index 799e96bde0..9c7f4c46f6 100644 --- a/wrapping/python/plugins/ExamplePlugin/ExampleFilter1.py +++ b/wrapping/python/plugins/ExamplePlugin/ExampleFilter1.py @@ -216,7 +216,7 @@ def preflight_impl(self, data_structure: nx.DataStructure, args: dict, message_h file_list: nx.GeneratedFileListParameter.ValueType = [ExampleFilter1.PARAM17_KEY].generate() message_handler(nx.IFilter.Message(nx.IFilter.Message.Type.Info, f'Preflight: {input_dir_path}')) - return nx.IFilter.PreflightResult() + return nx.IFilter.PreflightResult(preflight_values=[nx.IFilter.PreflightValue('name', 'value')]) def execute_impl(self, data_structure: nx.DataStructure, args: dict, message_handler: nx.IFilter.MessageHandler, should_cancel: nx.AtomicBoolProxy) -> nx.IFilter.ExecuteResult: """ This method actually executes the filter algorithm and reports results.