diff --git a/CHANGELOG.md b/CHANGELOG.md index 80438572..2cf176cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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`. diff --git a/earthdaily/__init__.py b/earthdaily/__init__.py index e9267410..e75d68d3 100644 --- a/earthdaily/__init__.py +++ b/earthdaily/__init__.py @@ -5,4 +5,4 @@ # to hide warnings from rioxarray or nano seconds conversion warnings.filterwarnings("ignore") -__version__ = "0.0.12" +__version__ = "0.0.13" diff --git a/earthdaily/accessor/__init__.py b/earthdaily/accessor/__init__.py index 766c40b6..c65d8d4f 100644 --- a/earthdaily/accessor/__init__.py +++ b/earthdaily/accessor/__init__.py @@ -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: @@ -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)