<div dir="ltr"><div dir="ltr">It should be fixed in r74157. Testing welcome.</div><div dir="ltr"><br></div><div>Regards,</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 5, 2019 at 12:04 PM Helmut Kudrnovsky <<a href="mailto:hellik@web.de">hellik@web.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">margherita wrote<br>
> Hi,<br>
> <br>
> I could not reproduce the error. To me the example just works, there are<br>
> only some deprecation warnings.<br>
> <br>
> r.width.funct map=dist2out image=test<br>
> 100%<br>
> Tot. cells 88407.0<br>
> Tot. area 8840700.0<br>
> Max distance 7714.591101<br>
> /usr/lib64/python2.7/site-packages/matplotlib/cbook.py:136:<br>
> MatplotlibDeprecationWarning: The WX backend is deprecated. It's untested<br>
> and will be removed in Matplotlib 2.2. Use the WXAgg backend instead. See<br>
> Matplotlib usage FAQ for more info on backends.<br>
> warnings.warn(message, mplDeprecation, stacklevel=1)<br>
> ===========================<br>
> Width Function | quantiles<br>
> ===========================<br>
> 883 | 0.05<br>
> 1756 | 0.15<br>
> 2763 | 0.3<br>
> 3218 | 0.4<br>
> 3661 | 0.5<br>
> 4218 | 0.6<br>
> 4893 | 0.7<br>
> 5926 | 0.85<br>
> 6984 | 0.95<br>
> <br>
> <br>
> Done!<br>
> <br>
> Kind regards,<br>
<br>
tested here with<br>
<br>
GRASS Version: 7.4.2 <br>
GRASS SVN revision: r73591 <br>
Build date: 2018-10-23 <br>
Build platform: x86_64-w64-mingw32 <br>
GDAL: 2.3.2 <br>
PROJ.4: 5.2.0 <br>
GEOS: 3.7.0 <br>
SQLite: 3.17.0 <br>
Python: 2.7.14 <br>
wxPython: 2.8.12.1 <br>
Platform: Windows-7-6.1.7601-SP1 (OSGeo4W) <br>
<br>
++++++++++<br>
r.width.funct --verbose map=dist2out@user1 image=C:\temp\baer\test.png <br>
('Tot. cells', 88407.0)<br>
('Tot. area', 8840700.0)<br>
('Max distance', 7714.591101)<br>
Traceback (most recent call last):<br>
File "C:\Users\KUDRNOVSKY\AppData\Roaming\GRASS7\addons/sc<br>
ripts/<a href="http://r.width.funct.py" rel="noreferrer" target="_blank">r.width.funct.py</a>", line 135, in <module><br>
sys.exit(main())<br>
File "C:\Users\KUDRNOVSKY\AppData\Roaming\GRASS7\addons/sc<br>
ripts/<a href="http://r.width.funct.py" rel="noreferrer" target="_blank">r.width.funct.py</a>", line 84, in main<br>
prc[0,0] , prc[0,1] = findint(kl,0.05) , 0.05<br>
File "C:\Users\KUDRNOVSKY\AppData\Roaming\GRASS7\addons/sc<br>
ripts/<a href="http://r.width.funct.py" rel="noreferrer" target="_blank">r.width.funct.py</a>", line 128, in findint<br>
z1, z2, f1, f2 = kl[int(Xf[0])][0], kl[int(Xf[0]-1)][0],<br>
kl[int(Xf[0])][1], kl[int(Xf[0]-1)][1]<br>
IndexError: invalid index to scalar variable.<br>
+++++++++<br>
<br>
still the same error<br>
<br>
<br>
<br>
-----<br>
best regards<br>
Helmut<br>
--<br>
Sent from: <a href="http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html</a><br>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font color="#666666">Margherita Di Leo</font></div></div></div></div></div></div></div></div></div>