Re: python parse_command
Pietro <[email protected]> Mon, 19 Feb 2018 18:49:46 +0100
| Newsgroups | gmane.comp.gis.grass.user |
|---|---|
| Message-ID | <CAM_TVRLGitoZ4hBJzKREbYQuhRm2A2iqa61ak71_i0V1k+hUAg@mail.gmail.com> |
Thank you Anna I did not noticed the underscor... On 19 Feb 2018 4:41 p.m., "Jonathan Reith" <[email protected]> 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 [email protected] https://lists.osgeo.org/mailman/listinfo/grass-user