[GRASS-dev] r.regression.multi failing

Luca Delucchi lucadeluge at gmail.com
Wed Mar 23 07:01:53 PDT 2016

On 23 March 2016 at 14:31, Paulo van Breugel <p.vanbreugel at gmail.com> wrote:
> Hi,


> I am using r.regression.multi in a python script (using grass.run_command())
> to compute the variance inflation factor (VIF).  It runs in a loop,
> regressing variables one by one to all the other variables. It sometimes
> happen that the function fails with:
> WARNING: Matrix is unsolvable
> ERROR: Multiple regression failed
> This causes my script to stop. However, I would like to capture this warning
> / error, and continue. Do you know how I can accomplish this?

did you try with try except ?

> Paulo



More information about the grass-dev mailing list