-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: fixed parsing of non-dict arguments for resolution (#85)
- Loading branch information
Showing
7 changed files
with
293 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "openeo-pg-parser-networkx" | ||
version = "2024.3.1" | ||
version = "2024.4.0" | ||
|
||
description = "Parse OpenEO process graphs from JSON to traversible Python objects." | ||
authors = ["Lukas Weidenholzer <[email protected]>", "Sean Hoyal <[email protected]>", "Valentina Hutter <[email protected]>", "Gerald Irsiegler <[email protected]>"] | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"sen2like_original_outputs_load1": { | ||
"process_id": "load_collection", | ||
"arguments": { | ||
"id": "SENTINEL2_L1C", | ||
"spatial_extent": { | ||
"west": -4.919340483677538, | ||
"east": 36.248628266322456, | ||
"south": 41.43373541041478, | ||
"north": 53.27118132212786 | ||
}, | ||
"temporal_extent": [ | ||
"2024-04-01T00:00:00Z", | ||
"2024-04-09T00:00:00Z" | ||
], | ||
"bands": [ | ||
"bo1" | ||
], | ||
"properties": {} | ||
} | ||
}, | ||
"sen2like_original_outputs_sen2": { | ||
"process_id": "sen2like", | ||
"arguments": { | ||
"data": { | ||
"from_node": "sen2like_original_outputs_load1" | ||
}, | ||
"export_original_files": true | ||
}, | ||
"result": true | ||
} | ||
} |
205 changes: 205 additions & 0 deletions
205
tests/data/res_tests/udps/sen2like_original_outputs.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,205 @@ | ||
{ | ||
"id": "sen2like_original_outputs", | ||
"summary": "Create Sentinel 2 - like .SAFE outputs from Sentinel 2 L1C and Landsat 8 and 9 datasets. ", | ||
"description": "Process sen2like and create Sentinel 2 - like .SAFE outputs from Sentinel 2 L1C and Landsat 8 and 9 datasets for all bands. Area of interest and time need to be specified. ", | ||
"parameters": [ | ||
{ | ||
"schema": { | ||
"type": "object", | ||
"subtype": "bounding-box", | ||
"title": "Bounding Box", | ||
"description": "A bounding box with the required fields `west`, `south`, `east`, `north` and optionally `base`, `height`, `crs`. The `crs` is a EPSG code, a WKT2:2018 string or a PROJ definition (deprecated).", | ||
"required": [ | ||
"west", | ||
"south", | ||
"east", | ||
"north" | ||
], | ||
"properties": { | ||
"west": { | ||
"description": "West (lower left corner, coordinate axis 1).", | ||
"type": "number" | ||
}, | ||
"south": { | ||
"description": "South (lower left corner, coordinate axis 2).", | ||
"type": "number" | ||
}, | ||
"east": { | ||
"description": "East (upper right corner, coordinate axis 1).", | ||
"type": "number" | ||
}, | ||
"north": { | ||
"description": "North (upper right corner, coordinate axis 2).", | ||
"type": "number" | ||
}, | ||
"base": { | ||
"description": "Base (optional, lower left corner, coordinate axis 3).", | ||
"type": [ | ||
"number", | ||
"null" | ||
] | ||
}, | ||
"height": { | ||
"description": "Height (optional, upper right corner, coordinate axis 3).", | ||
"type": [ | ||
"number", | ||
"null" | ||
] | ||
}, | ||
"crs": { | ||
"description": "Coordinate reference system of the extent, specified as as [EPSG code](http://www.epsg-registry.org/), [WKT2 (ISO 19162) string](http://docs.opengeospatial.org/is/18-010r7/18-010r7.html) or [PROJ definition (deprecated)](https://proj.org/usage/quickstart.html). Defaults to `4326` (EPSG code 4326) unless the client explicitly requests a different coordinate reference system.", | ||
"anyOf": [ | ||
{ | ||
"type": "integer", | ||
"subtype": "epsg-code", | ||
"title": "EPSG Code", | ||
"description": "Specifies details about cartographic projections as [EPSG](http://www.epsg.org) code.", | ||
"minimum": 1000, | ||
"examples": [ | ||
3857 | ||
] | ||
}, | ||
{ | ||
"type": "string", | ||
"subtype": "wkt2-definition", | ||
"title": "WKT2 definition", | ||
"description": "Specifies details about cartographic projections as WKT2 string. Refers to the latest WKT2 version (currently [WKT2:2018](http://docs.opengeospatial.org/is/18-010r7/18-010r7.html) / ISO 19162:2018) unless otherwise stated by the process." | ||
}, | ||
{ | ||
"type": "string", | ||
"subtype": "proj-definition", | ||
"title": "PROJ definition", | ||
"description": "**DEPRECATED.** Specifies details about cartographic projections as [PROJ](https://proj.org/usage/quickstart.html) definition." | ||
} | ||
], | ||
"default": 4326 | ||
} | ||
} | ||
}, | ||
"name": "spatial_extent", | ||
"description": "Bounding box for the area of interest" | ||
}, | ||
{ | ||
"schema": { | ||
"type": "array", | ||
"subtype": "temporal-interval", | ||
"title": "Single temporal interval", | ||
"description": "Left-closed temporal interval, represented as two-element array with the following elements:\n\n1. The first element is the start of the temporal interval. The specified instance in time is **included** in the interval.\n2. The second element is the end of the temporal interval. The specified instance in time is **excluded** from the interval.\n\nThe specified temporal strings follow [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339.html). Although [RFC 3339 prohibits the hour to be '24'](https://www.rfc-editor.org/rfc/rfc3339.html#section-5.7), **this process allows the value '24' for the hour** of an end time in order to make it possible that left-closed time intervals can fully cover the day. `null` can be used to specify open intervals.", | ||
"minItems": 2, | ||
"maxItems": 2, | ||
"items": { | ||
"description": "Processes and implementations may choose to only implement a subset of the subtypes specified here. Clients must check what back-ends / processes actually support.", | ||
"anyOf": [ | ||
{ | ||
"type": "string", | ||
"subtype": "date-time", | ||
"format": "date-time", | ||
"title": "Date with Time", | ||
"description": "Date and time representation, as defined for `date-time` by [RFC 3339 in section 5.6](https://www.rfc-editor.org/rfc/rfc3339.html#section-5.6)." | ||
}, | ||
{ | ||
"type": "string", | ||
"subtype": "date", | ||
"format": "date", | ||
"title": "Date only", | ||
"description": "Date only representation, as defined for `full-date` by [RFC 3339 in section 5.6](https://www.rfc-editor.org/rfc/rfc3339.html#section-5.6). The time zone is UTC." | ||
}, | ||
{ | ||
"type": "string", | ||
"subtype": "time", | ||
"format": "time", | ||
"title": "Time only", | ||
"description": "Time only representation, as defined for `full-time` by [RFC 3339 in section 5.6](https://www.rfc-editor.org/rfc/rfc3339.html#section-5.6). Although [RFC 3339 prohibits the hour to be '24'](https://www.rfc-editor.org/rfc/rfc3339.html#section-5.7), this definition allows the value '24' for the hour as end time in an interval in order to make it possible that left-closed time intervals can fully cover the day." | ||
}, | ||
{ | ||
"type": "string", | ||
"subtype": "year", | ||
"minLength": 4, | ||
"maxLength": 4, | ||
"pattern": "^\\d{4}$", | ||
"title": "Year only", | ||
"description": "Year representation, as defined for `date-fullyear` by [RFC 3339 in section 5.6](https://www.rfc-editor.org/rfc/rfc3339.html#section-5.6)." | ||
}, | ||
{ | ||
"type": "null" | ||
} | ||
] | ||
}, | ||
"examples": [ | ||
[ | ||
"2015-01-01T00:00:00Z", | ||
"2016-01-01T00:00:00Z" | ||
], | ||
[ | ||
"2015-01-01", | ||
"2016-01-01" | ||
], | ||
[ | ||
"00:00:00Z", | ||
"12:00:00Z" | ||
], | ||
[ | ||
"2015-01-01", | ||
null | ||
] | ||
] | ||
}, | ||
"name": "temporal_extent", | ||
"description": "Time span of interest" | ||
}, | ||
{ | ||
"schema": [ | ||
{ | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"type": "string", | ||
"subtype": "band-name" | ||
} | ||
}, | ||
{ | ||
"title": "No filter", | ||
"description": "Don't filter bands. All bands are included in the data cube.", | ||
"type": "null" | ||
} | ||
], | ||
"name": "bands", | ||
"description": "Bands to load and process. Note: sen2like does not process `B09`, `B10`. ", | ||
"optional": true | ||
} | ||
], | ||
"returns": { | ||
"description": "A list of .zip files containing the Sentinel 2 - like .SAFE folders. ", | ||
"schema": { | ||
"type": "list" | ||
} | ||
}, | ||
"process_graph": { | ||
"load1": { | ||
"process_id": "load_collection", | ||
"arguments": { | ||
"id": "SENTINEL2_L1C", | ||
"spatial_extent": { | ||
"from_parameter": "spatial_extent" | ||
}, | ||
"temporal_extent": { | ||
"from_parameter": "temporal_extent" | ||
}, | ||
"bands": { | ||
"from_parameter": "bands" | ||
}, | ||
"properties": {} | ||
} | ||
}, | ||
"sen2": { | ||
"process_id": "sen2like", | ||
"arguments": { | ||
"data": { | ||
"from_node": "load1" | ||
}, | ||
"export_original_files": true | ||
}, | ||
"result": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"sen2like_original_outputs": { | ||
"process_id": "sen2like_original_outputs", | ||
"arguments": { | ||
"bands": [ | ||
"bo1" | ||
], | ||
"spatial_extent": { | ||
"west": -4.919340483677538, | ||
"east": 36.248628266322456, | ||
"south": 41.43373541041478, | ||
"north": 53.27118132212786 | ||
}, | ||
"temporal_extent": [ | ||
"2024-04-01T00:00:00Z", | ||
"2024-04-09T00:00:00Z" | ||
] | ||
}, | ||
"result": true, | ||
"namespace": "user", | ||
"description": "Create Sentinel 2 - like .SAFE outputs from Sentinel 2 L1C and Landsat 8 and 9 datasets. " | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters