Thank you Anna I did not noticed the underscor...

On 19 Feb 2018 4:41 p.m., "Jonathan Reith" <re...@mundialis.de> wrote:

  print(compregion)
  g.region(compregion,res="1", flags="p")

you are hassling the dictionary to a region, but you have to unpack the
dictionary just write:

...

g.region(res="1", flags="p", **compregion)

the two * unpack the dictionary.

Have fun!

Pietro
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to