Skip to content

Commit

Permalink
release(v0.5.4)
Browse files Browse the repository at this point in the history
release(v0.5.4)
  • Loading branch information
nkarasiak authored Mar 10, 2025
2 parents 300316a + e22f89f commit cc16650
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
12 changes: 12 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.5.4] - 2025-02-10

### Added

- `ini` credentials from `~/.earthdaily/credentials` now supports profile.

### Changed

- `filter_duplicate_items` has a time delta of 60 minutes
(due to issues with `sentinel-2-l2a` duplicates).


## [0.5.3] - 2025-02-13

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion earthdaily/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

__all__ = ["options"]

__version__ = "0.5.3"
__version__ = "0.5.4"


def EarthDataStore(
Expand Down
4 changes: 3 additions & 1 deletion earthdaily/earthdatastore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def read_credentials(
config = cls.read_credentials_from_environment()

else:
config = cls.read_credentials_from_ini()
config = cls.read_credentials_from_ini(profile=profile)

return config

Expand All @@ -527,6 +527,8 @@ def read_credentials_from_ini(cls, profile: str = "default") -> dict:

from configparser import ConfigParser

if profile is None:
profile = "default"
ini_path = Path.home() / ".earthdaily/credentials"
ini_config = ConfigParser()
ini_config.read(ini_path)
Expand Down
2 changes: 1 addition & 1 deletion earthdaily/earthdatastore/_filter_duplicate.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def _select_latest_items(items: List[Dict]) -> List[Dict]:

def filter_duplicate_items(
items: ItemCollection,
time_threshold: timedelta = timedelta(minutes=5),
time_threshold: timedelta = timedelta(minutes=60),
method="proj:transform",
) -> ItemCollection:
"""
Expand Down

0 comments on commit cc16650

Please sign in to comment.