Loading [MathJax]/jax/output/HTML-CSS/config.js
opalsQualityDemo.py
1 # example on how to run an opals workflow package script from inside python
2 
3 # import opalsQuality package script
4 from opals.workflows import opalsQuality
5 
6 def test_run():
7  # instantiate package and set parameters
8  pkgQlt = opalsQuality.opalsQuality(infile = 'strip??.laz')
9 
10  # it is also possible to set parameters explicitly
11  # pkgQlt = opalsQuality.opalsQuality()
12  # pkgQlt.infile = 'strip??.laz'
13 
14  # run package script
15  pkgQlt.run()
16 
17 
18 if __name__ == "__main__":
19  # since the workflow scripts may use the python multiprocessing library, we need to
20  # place the actual run command in such an if statement. see the python multiprocessing
21  # docu (https://docs.python.org/3/library/multiprocessing.html) for further details.
22  test_run()