tlpipe.pipeline.pipeline.FileIterBase¶
-
class
tlpipe.pipeline.pipeline.FileIterBase(parameter_file_or_dict=None, feedback=2)[source]¶ Base class for iterating tasks over input files.
Tasks inheriting from this class should override
process()and optionallysetup(),finish(),read_input(),write_output()andcast_input(). They should not overridenext().Attributes
cacheableOverride to return True if caching results is implemented. embarrassingly_parallelizableOverride to return True if next() is trivially parallelizeable. historyHistory that will be added to the output file. iterationCurrent iteration when iterable is True, None else. params_initprefixMethods
cast_input(input)Override to support accepting pipeline inputs of various types. copy_input(input)Override to return a copy of the input so that the original input would not be changed by the task. finish()Final analysis stage of pipeline task. next([input])Should not need to override. process(input)Override this method with your data processing task. read_input()Override to implement reading inputs from disk. read_output(filenames)Override to implement reading outputs from disk. read_process_write(input)Reads input, executes any processing and writes output. restart_iteration()Re-start the iteration. setup([requires])First analysis stage of pipeline task. show_params()Show all parameters that can be set and their default values of this task. stop_iteration([force_stop])Determine whether to stop the iteration. write_output(output)Override to implement writing outputs to disk.