Skip to content

Commit

Permalink
Merge pull request #56 from earthdaily/dev
Browse files Browse the repository at this point in the history
v0.0.13
  • Loading branch information
nkarasiak authored Mar 6, 2024
2 parents 46f8e62 + 20b719f commit 52192e4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,21 @@ 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.0.13] - 2024-03-06

### Fixed

- `_typer` with kwargs to other functions.

## [0.0.12] - 2024-03-06

### Added

- `_typer` supports custom
- `_typer` supports custom types.

### Changed

- `zonal_stats` outputs only valid geometries. Set `True`
- `zonal_stats` outputs only valid geometries. Set `True`.
to `raise_missing_geometry` to have the old behavior.
- `zonal_stats` with geocube now manages `all_touched`.

Expand Down
2 changes: 1 addition & 1 deletion earthdaily/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# to hide warnings from rioxarray or nano seconds conversion
warnings.filterwarnings("ignore")

__version__ = "0.0.12"
__version__ = "0.0.13"
6 changes: 3 additions & 3 deletions earthdaily/accessor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def force(*args, **kwargs):
val = vals[0]
idx = func.__code__.co_varnames.index(key)
is_kwargs = key in kwargs.keys()
if not is_kwargs and idx > len(_args):
if not is_kwargs and idx >= len(_args):
break
value = kwargs.get(key, None) if is_kwargs else args[idx]
if type(value) in vals:
Expand All @@ -79,10 +79,10 @@ def force(*args, **kwargs):
_args[idx] = res
elif is_kwargs:
kwargs[key] = (
var(kwargs[key]) if var is not list else [kwargs[key]]
val(kwargs[key]) if val is not list else [kwargs[key]]
)
else:
_args[idx] = var(args[idx]) if var is not list else [args[idx]]
_args[idx] = val(args[idx]) if val is not list else [args[idx]]
args = tuple(_args)
return func(*args, **kwargs)

Expand Down

0 comments on commit 52192e4

Please sign in to comment.