Skip to content

Commit

Permalink
Added example usage of PreflightValue to ExampleFilter1
Browse files Browse the repository at this point in the history
Signed-off-by: Jared Duffey <[email protected]>
  • Loading branch information
JDuffeyBQ committed Apr 19, 2024
1 parent 0d2f7e9 commit 66bd21b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wrapping/python/plugins/ExamplePlugin/ExampleFilter1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 66bd21b

Please sign in to comment.