Skip to content

Commit 32c5f5d

Browse files
committed
add extra validations in complex operations: Scale, Reproject, Axis, Cast, AxisIter, AxisIterRef, Condense
1 parent 2b9beef commit 32c5f5d

File tree

5 files changed

+257
-87
lines changed

5 files changed

+257
-87
lines changed

tests/test_model.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def test_coverage_with_interval():
189189

190190
assert str(cov_expr) == (
191191
"for $cov1 in (cov1)\nreturn\n "
192-
"(coverage intervalCoverage over $pt time(0:10) values $cov1[time($pt)])"
192+
"(coverage intervalCoverage over $pt time(0 : 10) values $cov1[time($pt)])"
193193
)
194194

195195

@@ -204,7 +204,7 @@ def test_coverage_with_interval_and_params():
204204
.params('{ "configOptions": { "GDAL_CACHEMAX": "64" } }'))
205205
expected_query = (
206206
'for $cov1 in (cov1)\nreturn\n '
207-
'encode((coverage intervalCoverage over $pt time(0:10) values $cov1[time($pt)]), '
207+
'encode((coverage intervalCoverage over $pt time(0 : 10) values $cov1[time($pt)]), '
208208
'"GTiff", "{ \\"configOptions\\": { \\"GDAL_CACHEMAX\\": \\"64\\" } }")'
209209
)
210210

@@ -229,8 +229,8 @@ def test_clip_linestring1():
229229
' "2008-01-08T00:02:58.000Z" 705042.727359 5454865.55794)')
230230
clip_expr = Clip(cov1, wkt_linestring)
231231
expected_query = ("for $cov1 in (cov1)\nreturn\n "
232-
f"clip($cov1, LINESTRING(\"2008-01-01T02:01:20.000Z\" 75042.7273594 5094865.55794, "
233-
f"\"2008-01-08T00:02:58.000Z\" 705042.727359 5454865.55794))")
232+
"clip($cov1, LINESTRING(\"2008-01-01T02:01:20.000Z\" 75042.7273594 5094865.55794, "
233+
"\"2008-01-08T00:02:58.000Z\" 705042.727359 5454865.55794))")
234234
assert str(clip_expr) == expected_query
235235

236236

wcps/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
"""
66
__title__ = 'wcps'
77
__author__ = 'rasdaman team'
8-
__version__ = "0.5.0"
8+
__version__ = "0.5.1"

0 commit comments

Comments
 (0)