_moduleExportDemo.py
1 ## @package python.demo._moduleExportDemo
2 #
3 # \brief small example demonstrating the usage of the generic _module workflow script from python
4 #
5 from opals.tools import processor
6 from opals.workflows import _module
7 
8 if __name__ == "__main__":
9  # if parallel processing is used, the main of the script must be placed into such an if clause
10  mod = _module._module(module="Export", infile="strip*.odm", outfile=".", suffixOutfile="_py.laz",
11  processor=processor.multiprocess(6))
12  mod.run()
13  del mod # deletion of the module is necessary to avoid multiprocessing error messages