Skip to content

Commit 808a4b1

Browse files
authored
Release 1.7.9, Merge pull request #342 from sentinel-hub/develop
Release 1.7.9
2 parents 24f73ec + 51b3f40 commit 808a4b1

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

Diff for: .pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.5.0
3+
rev: v4.6.0
44
hooks:
55
- id: end-of-file-fixer
66
- id: requirements-txt-fixer
@@ -26,12 +26,12 @@ repos:
2626
language_version: python3
2727

2828
- repo: https://github.com/charliermarsh/ruff-pre-commit
29-
rev: "v0.3.3"
29+
rev: "v0.3.5"
3030
hooks:
3131
- id: ruff
3232

3333
- repo: https://github.com/nbQA-dev/nbQA
34-
rev: 1.8.4
34+
rev: 1.8.5
3535
hooks:
3636
- id: nbqa-black
3737
- id: nbqa-ruff

Diff for: CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [Version 1.7.9] - 2024-04-09
2+
3+
- Improved test utilities for vector files.
4+
5+
16
## [Version 1.7.8] - 2024-03-20
27

38
- `BatchDownloadPipeline` now has an option to automatically retry the download if the status is `PARTIAL`.

Diff for: eogrow/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""The main module of the eo-grow package."""
22

3-
__version__ = "1.7.8"
3+
__version__ = "1.7.9"

Diff for: eogrow/utils/testing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def _get_coords_sample(geom: Polygon | MultiPolygon | Any) -> list[tuple[float,
210210
"agg_stats": _extract_dataframe_stats(gdf),
211211
}
212212

213-
if len(gdf):
213+
if len(gdf) and config.num_random_values > 0:
214214
subsample: gpd.GeoDataFrame = gdf.sample(min(len(gdf), config.num_random_values), random_state=42)
215215
subsample["centroid"] = subsample.centroid.apply(_rounder)
216216
subsample["area"] = subsample.area

0 commit comments

Comments
 (0)