Skip to content

Commit

Permalink
v0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-braun committed Dec 7, 2021
1 parent 53d7723 commit 9945619
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -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**
Expand Down
8 changes: 6 additions & 2 deletions CI/SCRIPTS/test_satellites.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -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")
Expand All @@ -320,6 +322,8 @@ def _test_core(
prod.clean_tmp()
assert len(list(prod._tmp_process.glob("*"))) == 0

prod.clear()


@s3_env
@dask_env
Expand Down
2 changes: 1 addition & 1 deletion eoreader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, "
Expand Down

0 comments on commit 9945619

Please sign in to comment.