Re: [GRASS-dev] Passing several floating values to one single option

2012-09-13 Thread Pierre Roudier
Thanks all for the trick, > Added to > http://grass.osgeo.org/wiki/GRASS_Python_Scripting_Library#Parsing_the_options_and_flags Perfect place for it I reckon, Pierre -- Scientist Landcare Research, New Zealand ___ grass-dev mailing list grass-dev@li

Re: [GRASS-dev] Passing several floating values to one single option

2012-09-13 Thread Markus Neteler
On Thu, Sep 13, 2012 at 12:44 PM, Glynn Clements wrote: > Glynn Clements wrote: >> The option definition in the script should have: ... Added to http://grass.osgeo.org/wiki/GRASS_Python_Scripting_Library#Parsing_the_options_and_flags Markus ___ grass-

Re: [GRASS-dev] Passing several floating values to one single option

2012-09-13 Thread Glynn Clements
Glynn Clements wrote: > The option definition in the script should have: > > #% type: double > #% multiple: yes > > This allows g.parser to validate the option syntax, so you can rely > upon the string being in the correct format. If the values have a > fixed range, you can use e.g.

Re: [GRASS-dev] Passing several floating values to one single option

2012-09-13 Thread Glynn Clements
Pierre Roudier wrote: > This might be very simple, but I can't find an answer in the doco - so > here I am, > > I'm trying to pass several floats to a single option in a Python script: > > > python my.module.py input=input output=output myoption=0.1,0.2,0.5 > > Is there a clever way to declare

Re: [GRASS-dev] Passing several floating values to one single option

2012-09-13 Thread Markus Metz
On Thu, Sep 13, 2012 at 2:07 AM, Pierre Roudier wrote: > Hi all, > > This might be very simple, but I can't find an answer in the doco - so > here I am, > > I'm trying to pass several floats to a single option in a Python script: > >> python my.module.py input=input output=output myoption=0.1,0.2,

[GRASS-dev] Passing several floating values to one single option

2012-09-12 Thread Pierre Roudier
Hi all, This might be very simple, but I can't find an answer in the doco - so here I am, I'm trying to pass several floats to a single option in a Python script: > python my.module.py input=input output=output myoption=0.1,0.2,0.5 Is there a clever way to declare myoption so that it would pars