Skip to content

Commit 0c36277

Browse files
committed
Remove memoization
1 parent ec31eb3 commit 0c36277

5 files changed

Lines changed: 5 additions & 7 deletions

File tree

buildings-example/openmapflow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 0.1.4
1+
version: 0.1.5
22
project: buildings-example
33
description: OpenMapFlow buildings example
44
gcloud:

crop-mask-example/openmapflow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 0.1.4
1+
version: 0.1.5
22
project: crop-mask-example
33
description: OpenMapFlow crop mask example
44
gcloud:

maize-example/openmapflow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 0.1.4
1+
version: 0.1.5
22
project: maize-example
33
description: OpenMapFlow maize example
44
gcloud:

openmapflow/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
TEMPLATE_README = TEMPLATES_DIR / "README.md"
1414
TEMPLATE_DEPLOY_YML = TEMPLATES_DIR / "github-deploy.yaml"
1515
TEMPLATE_TEST_YML = TEMPLATES_DIR / "github-test.yaml"
16-
VERSION = "0.1.4"
16+
VERSION = "0.1.5"
1717

1818
# -------------- Dataframe column names --------------------------------------
1919
SOURCE = "source"

openmapflow/ee_exporter.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from openmapflow.bands import DAYS_PER_TIMESTEP, DYNAMIC_BANDS
99
from openmapflow.bbox import BBox
1010
from openmapflow.constants import END, LAT, LON, START
11-
from openmapflow.utils import memoized, tqdm
11+
from openmapflow.utils import tqdm
1212

1313
try:
1414
import ee
@@ -27,7 +27,6 @@
2727
warnings.warn("ee_exporter requires earthengine-api, `pip install earthengine-api`")
2828

2929

30-
@memoized
3130
def get_ee_task_list(key: str = "description") -> List[str]:
3231
"""Gets a list of all active tasks in the EE task list."""
3332
task_list = ee.data.getTaskList()
@@ -58,7 +57,6 @@ def get_ee_task_amount(prefix: Optional[str] = None):
5857
return amount
5958

6059

61-
@memoized
6260
def get_cloud_tif_list(dest_bucket: str, prefix: str = "tifs") -> List[str]:
6361
"""Gets a list of all cloud-free TIFs in a bucket."""
6462
storage = import_optional_dependency("google.cloud.storage")

0 commit comments

Comments
 (0)