File tree Expand file tree Collapse file tree 3 files changed +24
-4
lines changed
tools/apex_algorithm_qa_tools Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Original file line number Diff line number Diff line change
1
+ # Benchmark scenarios
2
+
3
+ Benchmark scenarios are defined as JSON files in this folder.
4
+
5
+ > [ !WARNING]
6
+ > The format of these files is [ subject to change] ( https://github.com/ESA-APEx/apex_algorithms/issues/14 ) .
7
+
8
+
9
+ Each of these files should contain an array of benchmark scenario objects,
10
+ which have the following properties:
11
+
12
+
13
+
14
+ | Element | Type | Description |
15
+ | --------------- | ------------ | ------------------------------------ |
16
+ | id | string | ** REQUIRED.** Benchmark scenario identifier. |
17
+ | type | string | ** REQUIRED.** Must be set to "openeo" currently. |
18
+ | description | string | Description of the benchmark scenario. |
19
+ | backend | string | ** REQUIRED.** The openEO backend URL to be used. |
20
+ | process_graph | object | ** REQUIRED.** The openEO process graph to be executed. |
Original file line number Diff line number Diff line change 14
14
def test_run_benchmark (scenario : BenchmarkScenario , connection_factory ):
15
15
connection : openeo .Connection = connection_factory (url = scenario .backend )
16
16
17
- # TODO: scenario option to use synchronous instead of batch job mode?
17
+ # TODO #14 scenario option to use synchronous instead of batch job mode?
18
18
job = connection .create_job (
19
19
process_graph = scenario .process_graph ,
20
20
title = f"APEx benchmark { scenario .id } " ,
21
21
)
22
22
23
23
job .start_and_wait ()
24
24
25
- # TODO download job results and inspect
25
+ # TODO #5 download job results and inspect
Original file line number Diff line number Diff line change 17
17
18
18
@dataclasses .dataclass (kw_only = True )
19
19
class BenchmarkScenario :
20
- # TODO: need for differentiation between different types of scenarios?
20
+ # TODO #14 need for differentiation between different types of scenarios?
21
21
id : str
22
22
description : str | None = None
23
23
backend : str
24
24
process_graph : dict
25
25
26
26
@classmethod
27
27
def from_dict (cls , data : dict ) -> BenchmarkScenario :
28
- # TODO: standardization of these types? What about other types and how to support them?
28
+ # TODO #14 standardization of these types? What about other types and how to support them?
29
29
assert data ["type" ] == "openeo"
30
30
return cls (
31
31
id = data ["id" ],
You can’t perform that action at this time.
0 commit comments