[GRASS-user] "Parallelization" of Python Script

Hamish hamish_b at yahoo.com
Tue Aug 7 01:47:38 PDT 2012


Daniel wrote:
> Certainly it's possible, it'd just be a question of how you make your loop.
> Inside the loop of your jobs you could evaluate whether it's an odd or even
> job and check if the previous job has been finished, then start the next
> one. I'm not sure what your code looks like, but I've condensed Hamish's
> script for my own reference into an example gist so that I can remember some
> of the cool tricks. I don't know if it would help you to look at it since
> you're already seen the original script, but if you want to take a look
> feel free to:
>
> https://gist.github.com/3282580

Hi,

please consider to add this sort of thing to the GRASS wiki. it is very
helpful to have these snippets there.


to mark up python code in the wiki with nice colors:

<source lang="python">

code goes here

</source>


[[Category: Development]]
[[Category: Parallelization]]


thanks,
Hamish


More information about the grass-user mailing list