Home | Trees | Indices | Help |
|
---|
|
object --+ | FileProcessor
An abstract base for a source file processor.
In concrete classes, you need to define a ``process(fName)`` method receiving a source as returned by the dd (i.e., usually a file name).
You can override the method ``_createAuxiliaries(dataDesc)`` to compute things like source catalogues, etc. Thus, you should not need to override the constructor.
These objects are usually constructed thorough ``api.procmain`` as discussed in :dachsdoc:`processing.html`.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Static Methods | |||
|
Class Variables | |
inputsDir = base.getConfig("inputsDir")
|
Properties | |
Inherited from |
Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
executes process() in parallel for all sources and iterates over the results. We use this rather than multiprocessing's Pool, as that cannot call methods. I'm working around this here. |
iterates over all identifiers that should be processed. This is usually the paths of the files to be processed. You can, however, override it to do something else if that fits your problem (example: Previews in SSA use the accref). |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |