[GRASS-SVN] r73964 - grass-addons/grass7/imagery/i.sentinel/i.sentinel.preproc

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jan 17 12:00:27 PST 2019


Author: neteler
Date: 2019-01-17 12:00:27 -0800 (Thu, 17 Jan 2019)
New Revision: 73964

Modified:
   grass-addons/grass7/imagery/i.sentinel/i.sentinel.preproc/i.sentinel.preproc.py
Log:
i.sentinel.preproc addon: fix tab/space indentation; tabs are to be avoided, see https://trac.osgeo.org/grass/wiki/Submitting/Python?version=19#Editorsettingsfor4-spaceindentation

Modified: grass-addons/grass7/imagery/i.sentinel/i.sentinel.preproc/i.sentinel.preproc.py
===================================================================
--- grass-addons/grass7/imagery/i.sentinel/i.sentinel.preproc/i.sentinel.preproc.py	2019-01-17 19:43:38 UTC (rev 73963)
+++ grass-addons/grass7/imagery/i.sentinel/i.sentinel.preproc/i.sentinel.preproc.py	2019-01-17 20:00:27 UTC (rev 73964)
@@ -295,11 +295,11 @@
                         images.text.replace('_B09','')))
 
     # Check if input exist
-	for key, value in bands.items():
-		if not gscript.find_file(value,
-			element = 'cell',
-			mapset = mapset)['file']:
-			gscript.fatal(('Raster map <{}> not found.').format(value))
+    for key, value in bands.items():
+        if not gscript.find_file(value,
+            element = 'cell',
+            mapset = mapset)['file']:
+            gscript.fatal(('Raster map <{}> not found.').format(value))
 
     # Check if output already exist
     for key, value in bands.items():
@@ -641,7 +641,7 @@
             text.write('191')
         else:
             gscript.fatal('Bands do not seem to belong to a Sentinel image')
-    	text.close()
+        text.close()
         
         if flags["a"]:
             gscript.run_command('i.atcorr',



More information about the grass-commit mailing list