[GRASS-SVN] r73467 - grass-addons/grass7/vector/v.gsflow.grid

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Sep 30 07:56:56 PDT 2018


Author: awickert
Date: 2018-09-30 07:56:56 -0700 (Sun, 30 Sep 2018)
New Revision: 73467

Modified:
   grass-addons/grass7/vector/v.gsflow.grid/v.gsflow.grid.py
Log:
v.gsflow.grid: NOT vs != bug with cursor


Modified: grass-addons/grass7/vector/v.gsflow.grid/v.gsflow.grid.py
===================================================================
--- grass-addons/grass7/vector/v.gsflow.grid/v.gsflow.grid.py	2018-09-29 21:29:59 UTC (rev 73466)
+++ grass-addons/grass7/vector/v.gsflow.grid/v.gsflow.grid.py	2018-09-30 14:56:56 UTC (rev 73467)
@@ -295,7 +295,7 @@
                 bcvect = vector.Vector(bc_cell)
                 bcvect.open('rw')
                 _cat_i = 2
-                if not _ismask_1:
+                if _ismask_1 != 0:
                     # _x should always be bc_x, but writing generalized code
                     _x = bc_x + float(dx) * (int(_col1) - bc_col) # col 1 at w edge
                     _y = bc_y - float(dy) * (int(_row1) - bc_row) # row 1 at n edge
@@ -303,7 +303,7 @@
                     bcvect.write(point0, cat=_cat_i, attrs=(None, _row1, _col1, _x, _y), )
                     bcvect.table.conn.commit()
                     _cat_i += 1
-                if not _ismask_2:
+                if _ismask_2 != 0:
                     # _y should always be bc_y, but writing generalized code
                     _x = bc_x + float(dx) * (int(_col2) - bc_col) # col 1 at w edge
                     _y = bc_y - float(dy) * (int(_row2) - bc_row) # row 1 at n edge



More information about the grass-commit mailing list