BaseTask#
- class stixcore.processing.sswidl.BaseTask(*, script='', work_dir='.', params=None)[source]#
Bases:
objectA processing task to do something later on.
Attributes Summary
Methods Summary
Preprocessing step applying any 'formatting' to the gathered parameter.
postprocessing(result, fits_processor)Postprocessing step to applying any 'formatting' to the gathered result.
run()Run the task and store the result internally.
Attributes Documentation
- key#
Provides a key for the collection (batch) of tasks
- Returns:
type – the class of the tasks
- results#
Holds the task results
- Returns:
list – a list of all results
Methods Documentation
- abstractmethod pack_params()[source]#
Preprocessing step applying any ‘formatting’ to the gathered parameter.
- Returns:
any – the pre processed parameters
- abstractmethod postprocessing(result, fits_processor)[source]#
Postprocessing step to applying any ‘formatting’ to the gathered result.
- Parameters:
result (any) – the result of the processing task
fits_processor (FitsProcessor) – a fits processor to write out product as fits
- Returns:
any – the post processed result