mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-30 00:04:58 -05:00
[processing] fixed issues when loading parameters
This commit is contained in:
parent
f6bf4f19db
commit
8e60f49f9e
@ -195,8 +195,8 @@ class ParameterFile(Parameter):
|
|||||||
|
|
||||||
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):
|
||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user