We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
flat_graph
ApiTester.result
1 parent 8d0cc6d commit a1f97acCopy full SHA for a1f97ac
openeo_driver/_version.py
@@ -1 +1 @@
1
-__version__ = "0.41.0a1"
+__version__ = "0.41.1a1"
openeo_driver/testing.py
@@ -272,10 +272,11 @@ def result(
272
if isinstance(process_graph, str):
273
# Assume it is a file name
274
process_graph = self.load_json(process_graph, preprocess=preprocess)
275
- elif isinstance(
276
- process_graph, (openeo.DataCube, openeo.processes.ProcessBuilderBase)
277
- ):
+ elif hasattr(process_graph, "flat_graph"):
+ # process graph API
+ # TODO: make this a more explicit API (e.g. with mixin)
278
process_graph = process_graph.flat_graph()
279
+ assert isinstance(process_graph, dict)
280
data = self.get_process_graph_dict(process_graph)
281
self.set_auth_bearer_token()
282
response = self.post(path=path, json=data)
0 commit comments