[GRASS-dev] pygrass and shorten parameters
Pietro
peter.zamb at gmail.com
Wed Oct 22 08:37:58 PDT 2014
On Wed, Oct 22, 2014 at 11:12 AM, Martin Landa <landa.martin at gmail.com> wrote:
> there is also another issue where pyGRASS seems to be too much strict, eg.
>
> Module('d.vect', map='p6', type='point', color='purple',
> icon='basic/star', size=10)
>
> fails with
>
> File "./u01.py", line 37, in compute
> Module('d.vect', map='p6', type='point', color='purple',
> icon='basic/star', size=10)
> [cut]
> TypeError: The Parameter <size>, require: float, get: <type 'int'> instead
>
> The reason is that pyGRASS expects 'size' given as a float and not
> integer. PyGRASS should do casting in this case automatically. Martin
This is fixed in grass71, should be backported.
More information about the grass-dev
mailing list