[GRASS-SVN] r70080 - grass-addons/grass7/raster/r.green/r.green.hydro/r.green.hydro.financial

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 14 14:22:06 PST 2016


Author: Giulia
Date: 2016-12-14 14:22:06 -0800 (Wed, 14 Dec 2016)
New Revision: 70080

Modified:
   grass-addons/grass7/raster/r.green/r.green.hydro/r.green.hydro.financial/r.green.hydro.financial.py
Log:
r.green: fix bug electroline length

Modified: grass-addons/grass7/raster/r.green/r.green.hydro/r.green.hydro.financial/r.green.hydro.financial.py
===================================================================
--- grass-addons/grass7/raster/r.green/r.green.hydro/r.green.hydro.financial/r.green.hydro.financial.py	2016-12-14 21:50:01 UTC (rev 70079)
+++ grass-addons/grass7/raster/r.green/r.green.hydro/r.green.hydro.financial/r.green.hydro.financial.py	2016-12-14 22:22:06 UTC (rev 70080)
@@ -723,7 +723,7 @@
                     # find the closest electro line
                     eline = electro.find['by_point'].geo(turbine, maxdist=1e6)
                     dist = eline.distance(turbine)
-                    # line.attrs['electro_length'] = dist.dist
+                    line.attrs['electro_length'] = dist.dist
                     ltemp.append([geo.Line([turbine, dist.point]),
                                  (line.attrs['plant_id'], line.attrs['side'])])
                 else:



More information about the grass-commit mailing list