On 24-07-14 16:21, Glynn Clements wrote:
Paulo van Breugel wrote:
How do I use this new flag / seed parameter for r.mapcalc in python
scripts?
The grass.script.mapcalc() function has been updated to accept a seed=
parameter, which should be either an integer or the string 'auto' for
a random seed.
Hi, after updating to the latest version, I tried:
grass.script.mapcalc("$tmp_map = rand(${minval},${maxval})",
seed='auto',
minval = minval,
maxval = maxval,
tmp_map = tmp_map)
grass.script.mapcalc("$tmp_map = rand(${minval},${maxval})",
seed=1,
minval = minval,
maxval = maxval,
tmp_map = tmp_map)
In both cases I get the error.
ERROR: Pseudo-random number generator not seeded
Any idea what am I doing wrong here?
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev