Skip to content

Commit

Permalink
Followup 297f466 pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Apr 7, 2016
1 parent cc50157 commit 5376cbf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
Expand Up @@ -31,6 +31,7 @@
from processing.preconfigured.PreconfiguredAlgorithmDialog import PreconfiguredAlgorithmDialog
from processing.preconfigured.PreconfiguredAlgorithm import PreconfiguredAlgorithm


class NewPreconfiguredAlgorithmAction(ContextAction):

def __init__(self):
Expand Down
Expand Up @@ -31,6 +31,7 @@
from processing.core.GeoAlgorithm import GeoAlgorithm
import json


class PreconfiguredAlgorithm(GeoAlgorithm):

def __init__(self, descriptionFile):
Expand Down
Expand Up @@ -83,6 +83,7 @@ def accept(self):
self.tr('Wrong or missing parameter values'))
self.close()


class SettingsPanel(QWidget):

def __init__(self):
Expand Down
Expand Up @@ -54,12 +54,10 @@ def _loadAlgorithms(self):
self.algs.append(alg)

def getIcon(self):
return QIcon(os.path.join(os.path.dirname(os.path.dirname(__file__)) , 'images', 'alg.png'))
return QIcon(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'images', 'alg.png'))

def getName(self):
return 'preconfigured'

def getDescription(self):
return self.tr('Preconfigured algorithms', 'PreconfiguredAlgorithmProvider')


Expand Up @@ -20,6 +20,7 @@
import os
from processing.tools.system import mkdir, userFolder


def preconfiguredAlgorithmsFolder():
folder = unicode(os.path.join(userFolder(), 'preconfigured'))
mkdir(folder)
Expand All @@ -34,4 +35,3 @@ def algAsDict(alg):
for out in alg.outputs:
outputs[out.name] = out.value
return {"parameters": params, "outputs": outputs, "algname": alg.commandLineName()}

1 comment on commit 5376cbf

@m-kuhn
Copy link
Member Author

@m-kuhn m-kuhn commented on 5376cbf Apr 7, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@volaya would be great if you could set up your git config to call prepare-commit.sh. See here: https://travis-ci.org/qgis/QGIS/jobs/121400394#L1042

Please sign in to comment.