On Wed, Mar 21, 2018 at 7:57 PM, Nikos Alexandris <n...@nikosalexandris.net> wrote: > > how can I use the 'from' parameter in a python script? The following > ``` > from_range=0,255 > to_range=0,511 > cls.runModule('r.rescale', input=band, output=output_map_name, > from=from_range, to=to_range, overwrite=True) > ``` > > causes expectedly > ``` > SyntaxError: invalid syntax > ```
Try `from_`. I'm not sure at this point if it works in a gunittest (which you seem to be using). Vaclav
_______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev