[GRASS-SVN] r66246 - grass-addons/grass7/vector/v.lidar.mcc

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 16 08:36:50 PDT 2015


Author: wenzeslaus
Date: 2015-09-16 08:36:50 -0700 (Wed, 16 Sep 2015)
New Revision: 66246

Modified:
   grass-addons/grass7/vector/v.lidar.mcc/v.lidar.mcc.py
Log:
v.lidar.mcc: use G7 option names for v.outlier

Also change formatting to PEP8 for these two lines.


Modified: grass-addons/grass7/vector/v.lidar.mcc/v.lidar.mcc.py
===================================================================
--- grass-addons/grass7/vector/v.lidar.mcc/v.lidar.mcc.py	2015-09-16 15:32:56 UTC (rev 66245)
+++ grass-addons/grass7/vector/v.lidar.mcc/v.lidar.mcc.py	2015-09-16 15:36:50 UTC (rev 66246)
@@ -210,9 +210,17 @@
             grass.verbose("Number of input points in iteration " + str(i) + ": " + str(n_input) )
             # Run v.outlier
             if flag_n == False :
-                grass.run_command("v.outlier", input = nc_points, output = temp_ncout, outlier=temp_ng, ew_step=xs_s, ns_step=ys_s, lambda_i=f, thres_o=t, filter="positive", overwrite = True, quiet = True, stderr = nuldev )
+                grass.run_command('v.outlier',
+                    input=nc_points, output=temp_ncout, outlier=temp_ng,
+                    ew_step=xs_s, ns_step=ys_s, lambda_=f, threshold=t,
+                    filter='positive',
+                    overwrite=True, quiet=True, stderr=nuldev)
             else :
-                grass.run_command("v.outlier", input = nc_points, output = temp_ncout, outlier=temp_ng, ew_step=xs_s, ns_step=ys_s, lambda_i=f, thres_o=t, filter="negative", overwrite = True, quiet = True, stderr = nuldev )
+                grass.run_command('v.outlier',
+                    input=nc_points, output=temp_ncout, outlier=temp_ng,
+                    ew_step=xs_s, ns_step=ys_s, lambda_=f, threshold=t,
+                    filter='negative',
+                    overwrite=True, quiet=True, stderr=nuldev)
             
             # Get information about results for calculating convergence level
             ng=grass.vector_info(temp_ng)['points']



More information about the grass-commit mailing list