The decompose_flow_vectors script has no function encapsulation with all of the code being at the top level and executed at import time.
Better practice would be to wrap the functionality in a main() function, so that it can be imported into other programs and run programmatically (e.g. in a WPS process).
The
decompose_flow_vectors
script has no function encapsulation with all of the code being at the top level and executed at import time.Better practice would be to wrap the functionality in a
main()
function, so that it can be imported into other programs and run programmatically (e.g. in a WPS process).Follow the example in
generate_prsn
to do this.