Skip to content

Commit a894a2c

Browse files
authored
Merge pull request #64 from earthdaily/dev
release(0.1.2)
2 parents 35b2b39 + 515d39e commit a894a2c

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.1.2] - 2024-05-15
8+
9+
### Fixed
10+
11+
- Wrong clear_percent/clear_pixels when having multiple geometries in datacube request
12+
713
## [0.1.1] - 2024-05-13
814

915
### Fixed

earthdaily/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# to hide warnings from rioxarray or nano seconds conversion
66
warnings.filterwarnings("ignore")
77

8-
__version__ = "0.1.1"
8+
__version__ = "0.1.2"

earthdaily/earthdatastore/cube_utils/custom_reducers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def mode(data_array_grouped, optional_arg=None):
3030
@staticmethod
3131
def register_custom_reducers():
3232
# register custom methods fo DataArrayGroupBy
33-
xr.core.groupby.DataArrayGroupBy.mode = CustomReducers.mode
34-
xr.core.groupby.DatasetGroupBy.mode = CustomReducers.mode
33+
groupby.DataArrayGroupBy.mode = CustomReducers.mode
34+
groupby.DatasetGroupBy.mode = CustomReducers.mode
3535
np.mode = CustomReducers._np_mode
3636

3737

earthdaily/earthdatastore/mask/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(self, dataset: xr.Dataset, intersects=None, bbox=None):
4848
if bbox and intersects is None:
4949
intersects = _bbox_to_intersects(bbox)
5050
if isinstance(intersects, gpd.GeoDataFrame):
51-
intersects = intersects.to_crs(self._obj.rio.crs).head(1)
51+
intersects = intersects.to_crs(self._obj.rio.crs)
5252
self.intersects = intersects
5353

5454
def ag_cloud_mask(

0 commit comments

Comments
 (0)