<div dir="ltr"><div><br><br>On Wed, Mar 21, 2018 at 7:57 PM, Nikos Alexandris <<a href="mailto:nik@nikosalexandris.net">nik@nikosalexandris.net</a>> wrote:<br>><br>> how can I use the 'from' parameter in a python script? The following<br>> ```<br>> from_range=0,255<br>> to_range=0,511<br>> cls.runModule('r.rescale', input=band, output=output_map_name,<br>>                        from=from_range, to=to_range, overwrite=True)<br>> ```<br>><br>> causes expectedly<br>> ```<br>> SyntaxError: invalid syntax<br>> ```<br><br><br>Try `from_`. I'm not sure at this point if it works in a gunittest (which you seem to be using).<br><br></div>Vaclav<br></div>