Skip to content

Commit

Permalink
Followup a463858, fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 19, 2018
1 parent 2d7addc commit 6c89265
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 @@ -1715,7 +1715,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 @@ -1732,7 +1732,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 @@ -1748,7 +1748,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 @@ -1768,7 +1768,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

1 comment on commit 6c89265

@nirvn
Copy link
Contributor

@nirvn nirvn commented on 6c89265 Apr 20, 2018

Choose a reason for hiding this comment

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

Thanks

Please sign in to comment.