[GRASS-dev] pygrass: how to use GridModule with a module that has a 'width' parameter

Moritz Lennert mlennert at club.worldonline.be
Sun Mar 18 13:19:11 PDT 2018


Hi Pietro and greetings from the Bonn code sprint !

Le Fri, 16 Mar 2018 08:26:11 +0100,
Pietro <peter.zamb at gmail.com> a écrit :

> Dear Moritz,
> 
> On Thu, Mar 8, 2018 at 3:22 PM, Moritz Lennert
> <mlennert at club.worldonline.be
> > wrote:  
> 
> > On 08/03/18 15:18, Vaclav Petras wrote:
> >
> > Try `width_` instead of `width` for the module parameter. This is
> > how  
> >> grass.script works (mostly to avoid conflicts with Python keywords
> >> namely lambda), but without checking the code, I don't know if
> >> PyGRASS has this implemented.
> >>  
> >
> > It doesn't. I tried width_ for both the i.zc parameter and the
> > GridModule parameter. Neither were accepted as valid parameters.  
> 
> 
> I've modifiredt the Module class to support this in r72367 [0].
> 
> Let me know if fixed your problem,
> 
>
> [0] https://trac.osgeo.org/grass/changeset/72367

Yes, this fixes my problem. Thanks a lot !

Moritz


More information about the grass-dev mailing list