Skip to content

Commit

Permalink
update readme.md, bump version for release (#50)
Browse files Browse the repository at this point in the history
Co-authored-by: Gerald Walter Irsiegler <gerald@Irsiegler-P14s>
  • Loading branch information
GeraldIr and Gerald Walter Irsiegler authored Jul 13, 2023
1 parent bf8be1e commit 60d9c13
Show file tree
Hide file tree
Showing 3 changed files with 159 additions and 86 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,32 @@ process_registry["ndvi"] = ndvi
process_registry["multiply"] = multiply
process_registry["load_collection"] = load_collection
process_registry["save_result"] = save_result
```
The `ProcessRegistry` also allows use of namespaces by using a tuple as a key instead of a single value.
If using a single value the default namespace is "predefined".

Addressing entire namespaces can be done by using None as the value for process_id.

```
process_registry["namespace", "process_id"] = process
process_registry["namespace", None] = processes
```
This logic can be extended to all functionalities.

```
process = process_registry["namespace", "process_id"] # gets the single process named "process_id" in the namespace "namespace"
processes = process_registry["namespace", None] # gets the entire namespace "namespace"
del process_registry["namespace", "process_id"] # deletes the single process named "process_id" in the namespace "namespace"
del process_registry["namespace", None] # deletes the entire namespace "namespace"
```



**Build an executable callable from the process graph:**

Expand Down Expand Up @@ -126,6 +151,9 @@ To run the test suite run:
poetry run python -m pytest
```




Note that you can also use the virtual environment that's generated by poetry as the kernel for the ipynb notebooks.

### Pre-commit hooks
Expand Down
215 changes: 130 additions & 85 deletions examples/01_minibackend_demo.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "openeo-pg-parser-networkx"
version = "2023.5.1"
version = "2023.7.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]>"]
license = "Apache 2.0"
Expand Down

0 comments on commit 60d9c13

Please sign in to comment.