Commit ac2a6966f5ba92d6d2f5abbb4420b36058e7ea1d

Authored by Jürgen Knödlseder
1 parent bb8a548e

Removed Python 3.x comment

Showing 1 changed file with 2 additions and 2 deletions
scripts/csresmap.py
@@ -326,7 +326,7 @@ class csresmap(ctools.cscript): @@ -326,7 +326,7 @@ class csresmap(ctools.cscript):
326 326
327 # Subtract and divide by model map 327 # Subtract and divide by model map
328 self.resmap -= modelmap 328 self.resmap -= modelmap
329 - self.resmap /= modelmap # Python 3.x does not like this !!! 329 + self.resmap /= modelmap
330 #for pixel in modelmap: 330 #for pixel in modelmap:
331 # if pixel != 0.0: 331 # if pixel != 0.0:
332 # pixel = 1.0/pixel 332 # pixel = 1.0/pixel
@@ -336,7 +336,7 @@ class csresmap(ctools.cscript): @@ -336,7 +336,7 @@ class csresmap(ctools.cscript):
336 336
337 # subtract and divide by sqrt of model map 337 # subtract and divide by sqrt of model map
338 self.resmap -= modelmap 338 self.resmap -= modelmap
339 - self.resmap /= modelmap.sqrt() # Python 3.x does not like this !!! 339 + self.resmap /= modelmap.sqrt()
340 #for pixel in modelmap: 340 #for pixel in modelmap:
341 # if pixel != 0.0: 341 # if pixel != 0.0:
342 # pixel = 1.0/math.sqrt(pixel) 342 # pixel = 1.0/math.sqrt(pixel)