Skip to content

Commit

Permalink
Update FilterData.py
Browse files Browse the repository at this point in the history
fixed an error and updated to latest behaviour
  • Loading branch information
spono committed Nov 15, 2015
1 parent e6d495a commit b501d5f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions python/plugins/processing/algs/lidar/fusion/FilterData.py
Expand Up @@ -50,7 +50,7 @@ def defineCharacteristics(self):
self.addParameter(ParameterNumber(
self.VALUE, self.tr('Standard Deviation multiplier')))
self.addParameter(ParameterNumber(
self.VALUE, self.tr('Window size'), None, None, 10))
self.WINDOWSIZE, self.tr('Window size'), None, None, 10))
self.addOutput(OutputFile(
self.OUTPUT, self.tr('Output filtered LAS file')))
self.addAdvancedModifiers()
Expand All @@ -62,7 +62,7 @@ def processAlgorithm(self, progress):
commands.append('outlier')
commands.append(unicode(self.getParameterValue(self.VALUE)))
commands.append(unicode(self.getParameterValue(self.WINDOWSIZE)))
outFile = self.getOutputValue(self.OUTPUT) + '.lda'
outFile = self.getOutputValue(self.OUTPUT)
commands.append(outFile)
files = self.getParameterValue(self.INPUT).split(';')
if len(files) == 1:
Expand All @@ -71,8 +71,5 @@ def processAlgorithm(self, progress):
FusionUtils.createFileList(files)
commands.append(FusionUtils.tempFileListFilepath())
FusionUtils.runFusion(commands, progress)
commands = [os.path.join(FusionUtils.FusionPath(), 'LDA2LAS.exe')]
commands.append(outFile)
commands.append(self.getOutputValue(self.OUTPUT))
p = subprocess.Popen(commands, shell=True)
p.wait()

0 comments on commit b501d5f

Please sign in to comment.