Skip to content

Commit

Permalink
Fixed checking bw1 type instead of bw2 type in k2 conden. Updated ver…
Browse files Browse the repository at this point in the history
…sion to 0.8.1. (#31)
  • Loading branch information
yaniv-shulman authored Aug 2, 2024
1 parent 02ea060 commit a2a67fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ packages = [
]
readme = "README.md"
repository = "https://github.com/yaniv-shulman/rsklpr"
version = "0.8.0"
version = "0.8.1"

[tool.poetry.group.experiments]
optional = true
Expand Down
2 changes: 1 addition & 1 deletion src/rsklpr/rsklpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def _k2_conden(
var_type=var_type + "c",
bw=(
self._bw2
if (self._bw2 in ("cv_ls", "cv_ml") or isinstance(self._bw1, List))
if (self._bw2 in ("cv_ls", "cv_ml") or isinstance(self._bw2, List))
else (
self._calculate_bandwidth(bandwidth=self._bw2, data=xy_neighbors) # type: ignore [arg-type]
if bw2_global is None
Expand Down

0 comments on commit a2a67fa

Please sign in to comment.