Skip to content
Browse files
Add some more clone methods to algorithm subclasses
  • Loading branch information
nyalldawson committed Jul 6, 2017
1 parent 0c6b19c commit 1b2afea23e0365ab9eddc7fdb07c1a4e336c7845
@@ -47,3 +47,6 @@ def trAlgorithm(self, string, context=''):
if context == '':
context = self.__class__.__name__
return string, QCoreApplication.translate(context, string)

def clone(self):
return type(self)()
@@ -48,6 +48,9 @@ def name(self):
def displayName(self):
return 'testalg'

def clone(self):
return TestAlg()

def processAlgorithm(self, parameters, context, feedback):
raise GeoAlgorithmExecutionException('Exception while processing')
return {}

0 comments on commit 1b2afea

Please sign in to comment.