Skip to content

Commit

Permalink
[processing] correctly initialize lastools settings before loading algs
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Jan 25, 2016
1 parent 7fcc7ab commit 73bef58
Showing 1 changed file with 7 additions and 7 deletions.
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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

Expand All @@ -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

Expand All @@ -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)
Expand Down Expand Up @@ -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.