Skip to content

Commit

Permalink
Issue #112 remove remove AggregatorConfig.memoizer
Browse files Browse the repository at this point in the history
Replaced by `AggregatorBackendConfig.memoizer`
  • Loading branch information
soxofaan committed Mar 1, 2024
1 parent e2fe18c commit 9eefb68
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/openeo_aggregator/caching.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ def get_memoizer(memoizer_type: str, memoizer_conf: dict) -> Memoizer:
else:
raise ValueError(memoizer_type)

memoizer_config = get_backend_config().memoizer or config.memoizer
memoizer_config = get_backend_config().memoizer
return get_memoizer(
memoizer_type=memoizer_config.get("type", "null"),
memoizer_conf=memoizer_config.get("config", {}),
Expand Down
3 changes: 0 additions & 3 deletions src/openeo_aggregator/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ class AggregatorConfig(dict):

config_source = dict_item()

# TODO #112 Deprecated, use AggregatorBackendConfig.memoizer instead
memoizer = dict_item(default={"type": "dict"})

# Just a config field for test purposes (while were stripping down this config class)
test_dummy = dict_item(default="alice")

Expand Down

0 comments on commit 9eefb68

Please sign in to comment.