Skip to content

Commit

Permalink
Followup 9d7484c, fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson authored and nirvn committed Apr 20, 2018
1 parent a9e0be5 commit 64baaf9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions python/plugins/processing/algs/qgis/IdwInterpolation.py
Expand Up @@ -76,10 +76,10 @@ def parseValue(value):
def dataToString(data):
s = ''
for c in data:
s += '{}::~:: {}::~:: {:d}::~:: {:d};'.format(c[0],
c[1],
c[2],
c[3])
s += '{}::~::{}::~::{:d}::~::{:d};'.format(c[0],
c[1],
c[2],
c[3])
return s[:-1]


Expand Down
6 changes: 3 additions & 3 deletions python/plugins/processing/tests/AlgorithmsTestBase.py
Expand Up @@ -155,9 +155,9 @@ def load_param(self, param, id=None):
prefix = processingTestDataPath()
tmp = ''
for r in param['name'].split(';'):
v = r.split(',')
tmp += '{},{},{},{};'.format(os.path.join(prefix, v[0]),
v[1], v[2], v[3])
v = r.split('::~::')
tmp += '{}::~::{}::~::{}::~::{};'.format(os.path.join(prefix, v[0]),
v[1], v[2], v[3])
return tmp[:-1]
except TypeError:
# No type specified, use whatever is there
Expand Down
Expand Up @@ -1651,7 +1651,7 @@ tests:
DISTANCE_COEFFICIENT: 2.0
EXTENT: 0, 8, -5, 3
INTERPOLATION_DATA:
name: pointsz.gml,0,1,0
name: pointsz.gml::~::0::~::1::~::0
type: interpolation
ROWS: 300
results:
Expand All @@ -1668,7 +1668,7 @@ tests:
DISTANCE_COEFFICIENT: 2.0
EXTENT: 0, 8, -5, 3
INTERPOLATION_DATA:
name: pointsz.gml,1,-1,0
name: pointsz.gml::~::1::~::-1::~::0
type: interpolation
ROWS: 300
results:
Expand All @@ -1684,7 +1684,7 @@ tests:
COLUMNS: 300
EXTENT: 0, 8, -5, 3
INTERPOLATION_DATA:
name: pointsz.gml,0,1,0
name: pointsz.gml::~::0::~::1::~::0
type: interpolation
METHOD: '0'
ROWS: 300
Expand All @@ -1704,7 +1704,7 @@ tests:
COLUMNS: 300
EXTENT: 0, 8, -5, 3
INTERPOLATION_DATA:
name: pointsz.gml,1,-1,0
name: pointsz.gml::~::1::~::-1::~::0
type: interpolation
METHOD: '1'
ROWS: 300
Expand Down

0 comments on commit 64baaf9

Please sign in to comment.