Skip to content

Commit

Permalink
[Processing] Fix getParameterDescriptions
Browse files Browse the repository at this point in the history
Add import json for script and r
return descs and not None
  • Loading branch information
rldhont committed May 31, 2016
1 parent 52f3ca6 commit 7270fda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/r/RAlgorithm.py
Expand Up @@ -26,6 +26,7 @@
__revision__ = '$Format:%H$'

import os
import json

from PyQt4.QtGui import QIcon

Expand Down Expand Up @@ -458,7 +459,7 @@ def getParameterDescriptions(self):
if param.name in descriptions:
descs[param.name] = unicode(descriptions[param.name])
except:
return None
return descs
return descs

def checkBeforeOpeningParametersDialog(self):
Expand Down
4 changes: 3 additions & 1 deletion python/plugins/processing/script/ScriptAlgorithm.py
Expand Up @@ -27,6 +27,8 @@

import os
from PyQt4 import QtGui
import re
import json
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.gui.Help2Html import getHtmlFromHelpFile
from processing.core.parameters import ParameterRaster
Expand Down Expand Up @@ -358,5 +360,5 @@ def getParameterDescriptions(self):
if param.name in descriptions:
descs[param.name] = unicode(descriptions[param.name])
except:
return None
return descs
return descs

0 comments on commit 7270fda

Please sign in to comment.