Skip to content

Commit

Permalink
Issue #47 evaluate(): default to api version 1.0.0 (iso 0.4)
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Oct 10, 2023
1 parent d3542e4 commit 8488216
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions openeo_driver/ProcessGraphDeserializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,8 @@ def evaluate(
"""

if 'version' not in env:
# TODO: make this a hard error, and stop defaulting to 0.4.0.
warnings.warn("Blindly assuming 0.4.0")
env = env.push({"version": "0.4.0"})
_log.warning("No version in `evaluate()` env. Blindly assuming 1.0.0.")
env = env.push({"version": "1.0.0"})

top_level_node = ProcessGraphVisitor.dereference_from_node_arguments(process_graph)
result_node = process_graph[top_level_node]
Expand Down
2 changes: 1 addition & 1 deletion openeo_driver/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.69.1a1"
__version__ = "0.69.2a1"
2 changes: 1 addition & 1 deletion tests/test_dry_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,7 @@ def test_evaluate_predefined_property(backend_implementation):
"lc": {"process_id": "load_collection", "arguments": {"id": "TERRASCOPE_S2_FAPAR_V2"}, "result": True},
}

env = EvalEnv(dict(backend_implementation=backend_implementation))
env = EvalEnv(dict(backend_implementation=backend_implementation, version="1.0.0"))
evaluate(pg, do_dry_run=True, env=env)


Expand Down

0 comments on commit 8488216

Please sign in to comment.