Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[sextante] fixed problem in Split RGB bands algorithm
  • Loading branch information
volaya committed Mar 12, 2013
1 parent dd85786 commit a56c957
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion python/plugins/sextante/saga/SplitRGBBands.py
Expand Up @@ -53,7 +53,12 @@ def defineCharacteristics(self):
def processAlgorithm(self, progress):
#TODO:check correct num of bands
input = self.getParameterValue(SplitRGBBands.INPUT)
temp = SextanteUtils.getTempFilename();
temp = SextanteUtils.getTempFilename(None).replace('.','');
basename = os.path.basename(temp)
validChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
safeBasename = ''.join(c for c in basename if c in validChars)
temp = os.path.join(os.path.dirname(temp), safeBasename)

r = self.getOutputValue(SplitRGBBands.R)
g = self.getOutputValue(SplitRGBBands.G)
b = self.getOutputValue(SplitRGBBands.B)
Expand Down

0 comments on commit a56c957

Please sign in to comment.