[GRASS-SVN] r73476 - grass-addons/grass7/vector/v.gsflow.grid
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Oct 1 15:28:10 PDT 2018
Author: awickert
Date: 2018-10-01 15:28:10 -0700 (Mon, 01 Oct 2018)
New Revision: 73476
Modified:
grass-addons/grass7/vector/v.gsflow.grid/v.gsflow.grid.py
Log:
v.gsflow.grid: typecast float in array
Modified: grass-addons/grass7/vector/v.gsflow.grid/v.gsflow.grid.py
===================================================================
--- grass-addons/grass7/vector/v.gsflow.grid/v.gsflow.grid.py 2018-10-01 22:18:14 UTC (rev 73475)
+++ grass-addons/grass7/vector/v.gsflow.grid/v.gsflow.grid.py 2018-10-01 22:28:10 UTC (rev 73476)
@@ -266,8 +266,8 @@
bc_row = colValues[:,colNames == 'row'].astype(int).squeeze()
bc_col = colValues[:,colNames == 'col'].astype(int).squeeze()
# Also get x and y while we are at it: may be needed later
- bc_x = float(colValues[:,colNames == 'x'].astype(float).squeeze())
- bc_y = float(colValues[:,colNames == 'y'].astype(float).squeeze())
+ bc_x = colValues[:,colNames == 'x'].astype(float).squeeze()
+ bc_y = colValues[:,colNames == 'y'].astype(float).squeeze()
if (bc_row != pp_row) and (bc_col != pp_col):
# If not diagonal, two possible locations that are adjacent
# to the pour point
More information about the grass-commit
mailing list