Skip to content

Commit 60d9c13

Browse files
rtmizGerald Walter Irsiegler
andauthored
update readme.md, bump version for release (#50)
Co-authored-by: Gerald Walter Irsiegler <gerald@Irsiegler-P14s>
1 parent bf8be1e commit 60d9c13

File tree

3 files changed

+159
-86
lines changed

3 files changed

+159
-86
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,32 @@ process_registry["ndvi"] = ndvi
8383
process_registry["multiply"] = multiply
8484
process_registry["load_collection"] = load_collection
8585
process_registry["save_result"] = save_result
86+
87+
88+
```
89+
The `ProcessRegistry` also allows use of namespaces by using a tuple as a key instead of a single value.
90+
If using a single value the default namespace is "predefined".
91+
92+
Addressing entire namespaces can be done by using None as the value for process_id.
93+
94+
```
95+
process_registry["namespace", "process_id"] = process
96+
process_registry["namespace", None] = processes
97+
98+
```
99+
This logic can be extended to all functionalities.
100+
86101
```
102+
process = process_registry["namespace", "process_id"] # gets the single process named "process_id" in the namespace "namespace"
103+
processes = process_registry["namespace", None] # gets the entire namespace "namespace"
104+
105+
106+
del process_registry["namespace", "process_id"] # deletes the single process named "process_id" in the namespace "namespace"
107+
del process_registry["namespace", None] # deletes the entire namespace "namespace"
108+
109+
```
110+
111+
87112

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

@@ -126,6 +151,9 @@ To run the test suite run:
126151
poetry run python -m pytest
127152
```
128153

154+
155+
156+
129157
Note that you can also use the virtual environment that's generated by poetry as the kernel for the ipynb notebooks.
130158

131159
### Pre-commit hooks

examples/01_minibackend_demo.ipynb

Lines changed: 130 additions & 85 deletions
Large diffs are not rendered by default.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "openeo-pg-parser-networkx"
3-
version = "2023.5.1"
3+
version = "2023.7.0"
44
description = "Parse OpenEO process graphs from JSON to traversible Python objects."
55
authors = ["Lukas Weidenholzer <[email protected]>", "Sean Hoyal <[email protected]>", "Valentina Hutter <[email protected]>"]
66
license = "Apache 2.0"

0 commit comments

Comments
 (0)