Skip to content

Commit

Permalink
[processing] fixed issues when loading parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Jul 22, 2014
1 parent f6bf4f1 commit 8e60f49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/plugins/processing/core/parameters.py
Expand Up @@ -195,8 +195,8 @@ def setValue(self, obj):


class ParameterFixedTable(Parameter): class ParameterFixedTable(Parameter):


def __init__(self, name='', description='', cols=['value'], def __init__(self, name='', description='', numRows=3,
numRows=3, fixedNumOfRows=False): cols=['value'], fixedNumOfRows=False):
Parameter.__init__(self, name, description) Parameter.__init__(self, name, description)
self.cols = cols self.cols = cols
if isinstance(cols, basestring): if isinstance(cols, basestring):
Expand Down Expand Up @@ -244,7 +244,7 @@ class ParameterMultipleInput(ParameterDataObject):


def __init__(self, name='', description='', datatype=-1, optional=False): def __init__(self, name='', description='', datatype=-1, optional=False):
ParameterDataObject.__init__(self, name, description) ParameterDataObject.__init__(self, name, description)
self.datatype = int(datatype) self.datatype = int(float(datatype))
self.optional = parseBool(optional) self.optional = parseBool(optional)
self.value = None self.value = None
self.exported = None self.exported = None
Expand Down Expand Up @@ -502,7 +502,7 @@ def setValue(self, n):
return True return True
except: except:
return False return False



class ParameterString(Parameter): class ParameterString(Parameter):


Expand Down

0 comments on commit 8e60f49

Please sign in to comment.