Skip to content

Commit 52192e4

Browse files
authored
Merge pull request #56 from earthdaily/dev
v0.0.13
2 parents 46f8e62 + 20b719f commit 52192e4

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

CHANGELOG.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,21 @@ 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.0.13] - 2024-03-06
8+
9+
### Fixed
10+
11+
- `_typer` with kwargs to other functions.
12+
713
## [0.0.12] - 2024-03-06
814

915
### Added
1016

11-
- `_typer` supports custom
17+
- `_typer` supports custom types.
1218

1319
### Changed
1420

15-
- `zonal_stats` outputs only valid geometries. Set `True`
21+
- `zonal_stats` outputs only valid geometries. Set `True`.
1622
to `raise_missing_geometry` to have the old behavior.
1723
- `zonal_stats` with geocube now manages `all_touched`.
1824

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.0.12"
8+
__version__ = "0.0.13"

earthdaily/accessor/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def force(*args, **kwargs):
5353
val = vals[0]
5454
idx = func.__code__.co_varnames.index(key)
5555
is_kwargs = key in kwargs.keys()
56-
if not is_kwargs and idx > len(_args):
56+
if not is_kwargs and idx >= len(_args):
5757
break
5858
value = kwargs.get(key, None) if is_kwargs else args[idx]
5959
if type(value) in vals:
@@ -79,10 +79,10 @@ def force(*args, **kwargs):
7979
_args[idx] = res
8080
elif is_kwargs:
8181
kwargs[key] = (
82-
var(kwargs[key]) if var is not list else [kwargs[key]]
82+
val(kwargs[key]) if val is not list else [kwargs[key]]
8383
)
8484
else:
85-
_args[idx] = var(args[idx]) if var is not list else [args[idx]]
85+
_args[idx] = val(args[idx]) if val is not list else [args[idx]]
8686
args = tuple(_args)
8787
return func(*args, **kwargs)
8888

0 commit comments

Comments
 (0)