You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Check whole process graph for pre-existing `save_result` nodes, not just final node
- Disallow ambiguity of combining explicit `save_result` and download/create_job with format
({"format": "GTiff"}, "result.tiff", {}, b"this is GTiff data"),
3259
3259
({"format": "GTiff"}, "result.tif", {}, b"this is GTiff data"),
3260
-
(
3261
-
{"format": "GTiff"},
3262
-
"result.nc",
3263
-
{},
3264
-
ValueError(
3265
-
"Existing `save_result` node with different format 'GTiff' != 'netCDF'"
3266
-
),
3267
-
),
3260
+
({"format": "GTiff"}, "result.nc", {}, b"this is GTiff data"),
3268
3261
({}, "result.tiff", {"format": "GTiff"}, b"this is GTiff data"),
3269
3262
({}, "result.nc", {"format": "netCDF"}, b"this is netCDF data"),
3270
3263
({}, "result.meh", {"format": "netCDF"}, b"this is netCDF data"),
3271
3264
(
3272
3265
{"format": "GTiff"},
3273
3266
"result.tiff",
3274
3267
{"format": "GTiff"},
3275
-
b"this is GTiff data",
3268
+
OpenEoClientException(
3269
+
"Download with explicit output format 'GTiff', but the process graph already has `save_result` node(s) which is ambiguous and should not be combined."
3270
+
),
3276
3271
),
3277
3272
(
3278
3273
{"format": "netCDF"},
3279
3274
"result.tiff",
3280
3275
{"format": "NETCDF"},
3281
-
b"this is netCDF data",
3276
+
OpenEoClientException(
3277
+
"Download with explicit output format 'NETCDF', but the process graph already has `save_result` node(s) which is ambiguous and should not be combined."
3278
+
),
3282
3279
),
3283
3280
(
3284
3281
{"format": "netCDF"},
3285
3282
"result.json",
3286
3283
{"format": "JSON"},
3287
-
ValueError(
3288
-
"Existing `save_result` node with different format 'netCDF' != 'JSON'"
3284
+
OpenEoClientException(
3285
+
"Download with explicit output format 'JSON', but the process graph already has `save_result` node(s) which is ambiguous and should not be combined."
3289
3286
),
3290
3287
),
3291
3288
({"options": {}}, "result.tiff", {}, b"this is GTiff data"),
3292
3289
(
3293
3290
{"options": {"quality": "low"}},
3294
3291
"result.tiff",
3295
3292
{"options": {"quality": "low"}},
3296
-
b"this is GTiff data",
3293
+
OpenEoClientException(
3294
+
"Download with explicit output options {'quality': 'low'}, but the process graph already has `save_result` node(s) which is ambiguous and should not be combined."
3295
+
),
3297
3296
),
3298
3297
(
3299
3298
{"options": {"colormap": "jet"}},
3300
3299
"result.tiff",
3301
3300
{"options": {"quality": "low"}},
3302
-
ValueError(
3303
-
"Existing `save_result` node with different options {'colormap': 'jet'} != {'quality': 'low'}"
3301
+
OpenEoClientException(
3302
+
"Download with explicit output options {'quality': 'low'}, but the process graph already has `save_result` node(s) which is ambiguous and should not be combined."
0 commit comments