Open-EO / openeo-geopyspark-driver

OpenEO driver for GeoPySpark (Geotrellis)
Apache License 2.0
26 stars 4 forks source link

align DataCubeParameters with load_collection #875

Closed bossie closed 1 week ago

bossie commented 1 week ago

https://github.com/Open-EO/openeo-geopyspark-driver/issues/812

bossie commented 1 week ago

load_stac now reuses dedicated method to create DataCubeParameters from LoadParameters. It's in a new module because otherwise there's a circular reference (layercatalog.py depends on load_stac.py).

This dedicated method makes use of some constants (in this case: EvalEnv keys) so to avoid another circular reference (layercatalog.py depends on datacube_parameters.py), these constants have been put into another module: constants.py.

bossie commented 1 week ago

Ok to put EvalEnv keys:

or is there a more Pythonic way that you prefer @soxofaan ?

bossie commented 1 week ago

I aligned it with some other containers-of-constants in the code like YARN_STATE, JOB_STATUS etc.