From 99456193a4f03a4f3eae641abfa889cb1c8d7640 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20BRAUN?= Date: Tue, 7 Dec 2021 11:05:19 +0100 Subject: [PATCH] v0.9.1 --- CHANGES.md | 3 ++- CI/SCRIPTS/test_satellites.py | 8 ++++++-- eoreader/__init__.py | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 94d138df..a0937cf7 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,10 +1,11 @@ # Release History -## 0.9.1 (202X-XX-XX) +## 0.9.1 (2021-12-07) - FIX: `Reader().valid_mtd` now correctly accepts strings instead of only `Platform` objects - FIX: Better handling of `Sentinel-2` product type - FIX: Save bands' new attributes in `str` (to pickle them) - FIX: Add a `clear()` function to clear products cache + ## 0.9.0 (2021-12-06) - **ENH: Adding the support of the ICEYE sensor** diff --git a/CI/SCRIPTS/test_satellites.py b/CI/SCRIPTS/test_satellites.py index e5d15440..bf36aee1 100644 --- a/CI/SCRIPTS/test_satellites.py +++ b/CI/SCRIPTS/test_satellites.py @@ -262,11 +262,12 @@ def _test_core( assert stack.attrs["long_name"] == to_str(stack_bands) assert stack.attrs["sensor"] == prod._get_platform().value assert stack.attrs["sensor_id"] == prod.sat_id - assert stack.attrs["product_type"] == prod.product_type + assert stack.attrs["product_type"] == prod.product_type.value assert stack.attrs["acquisition_date"] == prod.get_datetime( as_datetime=False ) assert stack.attrs["condensed_name"] == prod.condensed_name + assert stack.attrs["product_path"] == str(prod.path) # Write to path if needed if not ci_stack.exists(): @@ -298,11 +299,12 @@ def _test_core( assert band_arr.attrs["long_name"] == first_band.name assert band_arr.attrs["sensor"] == prod._get_platform().value assert band_arr.attrs["sensor_id"] == prod.sat_id - assert band_arr.attrs["product_type"] == prod.product_type + assert band_arr.attrs["product_type"] == prod.product_type.value assert band_arr.attrs["acquisition_date"] == prod.get_datetime( as_datetime=False ) assert band_arr.attrs["condensed_name"] == prod.condensed_name + assert band_arr.attrs["product_path"] == str(prod.path) # CRS LOGGER.info("Checking CRS") @@ -320,6 +322,8 @@ def _test_core( prod.clean_tmp() assert len(list(prod._tmp_process.glob("*"))) == 0 + prod.clear() + @s3_env @dask_env diff --git a/eoreader/__init__.py b/eoreader/__init__.py index 6c9c4e3a..37ab985b 100644 --- a/eoreader/__init__.py +++ b/eoreader/__init__.py @@ -50,7 +50,7 @@ def wrapper(*args, **kwargs): return wrapper -__version__ = "0.9.0" +__version__ = "0.9.1" __title__ = "eoreader" __description__ = ( "Remote-sensing opensource python library reading optical and SAR sensors, "