[GRASS-SVN] r67808 - grass-addons/grass7/raster/r.futures/r.futures.potential

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Feb 10 20:36:56 PST 2016


Author: annakrat
Date: 2016-02-10 20:36:56 -0800 (Wed, 10 Feb 2016)
New Revision: 67808

Modified:
   grass-addons/grass7/raster/r.futures/r.futures.potential/r.futures.potential.py
Log:
r.futures: Potential submodel: omit records with no data, write csv with tabs as separators for compatibility with PGA

Modified: grass-addons/grass7/raster/r.futures/r.futures.potential/r.futures.potential.py
===================================================================
--- grass-addons/grass7/raster/r.futures/r.futures.potential/r.futures.potential.py	2016-02-11 04:35:20 UTC (rev 67807)
+++ grass-addons/grass7/raster/r.futures/r.futures.potential/r.futures.potential.py	2016-02-11 04:36:56 UTC (rev 67808)
@@ -97,7 +97,7 @@
 
 interc <- paste("(1|", opt$level, ")")
 fmla <- as.formula(paste(opt$response, " ~ ", paste(c(predictors, interc), collapse= "+")))
-model = glmer(formula=fmla, family = binomial, data=input_data, na.action = "na.fail")
+model = glmer(formula=fmla, family = binomial, data=input_data, na.action = "na.omit")
 
 if(opt$usedredge) {
     #create all possible models, always include county as the level
@@ -171,7 +171,7 @@
             if i == 0:
                 row[0] = "ID"
                 row[1] = "Intercept"
-            fout.write(' '.join(row))
+            fout.write('\t'.join(row))
             fout.write('\n')
             i += 1
 



More information about the grass-commit mailing list