Skip to content
Permalink
Browse files

[processing] correctly initialize lastools settings before loading algs

  • Loading branch information
volaya committed Jan 25, 2016
1 parent 7fcc7ab commit 73bef5847059ce2a105dc6695da8d56af38ec758
Showing with 7 additions and 7 deletions.
  1. +7 −7 python/plugins/processing/algs/lidar/LidarToolsAlgorithmProvider.py
@@ -138,7 +138,9 @@ class LidarToolsAlgorithmProvider(AlgorithmProvider):
def __init__(self):
AlgorithmProvider.__init__(self)
self.activate = False
self.algsList = []

def _loadAlgorithms(self):
self.algs = []

# LAStools for processing single files

@@ -161,7 +163,7 @@ def __init__(self):
]
for alg in lastools:
alg.group = 'LAStools'
self.algsList.extend(lastools)
self.algs.extend(lastools)

# LAStools Production for processing folders of files

@@ -181,7 +183,7 @@ def __init__(self):
]
for alg in lastoolsPro:
alg.group = 'LAStools Production'
self.algsList.extend(lastoolsPro)
self.algs.extend(lastoolsPro)

# some examples for LAStools Pipelines

@@ -194,7 +196,7 @@ def __init__(self):
lastoolsPipe = []
for alg in lastoolsPipe:
alg.group = 'LAStools Pipelines'
self.algsList.extend(lastoolsPipe)
self.algs.extend(lastoolsPipe)

# FUSION

@@ -208,7 +210,7 @@ def __init__(self):
]
for alg in fusiontools:
alg.group = 'Fusion'
self.algsList.extend(fusiontools)
self.algs.extend(fusiontools)

def initializeSettings(self):
AlgorithmProvider.initializeSettings(self)
@@ -237,8 +239,6 @@ def getDescription(self):
def getIcon(self):
return QIcon(os.path.dirname(__file__) + '/../../images/tool.png')

def _loadAlgorithms(self):
self.algs = self.algsList

def getSupportedOutputTableExtensions(self):
return ['csv']

0 comments on commit 73bef58

Please sign in to comment.
You can’t perform that action at this time.