Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
![py310 status](https://img.shields.io/badge/python3.10-supported-green.svg)
![py311 status](https://img.shields.io/badge/python3.11-supported-green.svg)
![py312 status](https://img.shields.io/badge/python3.12-supported-green.svg)
![py313 status](https://img.shields.io/badge/python3.13-supported-green.svg)

1. [Quick start](#quick-start)
2. [Usage](#usage)
Expand Down
44 changes: 22 additions & 22 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyentrp/entropy.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def weighted_permutation_entropy(time_series, order=2, delay=1, normalize=False)
sorted_idx = x.argsort(kind="quicksort", axis=1)

motif_weights = {}
for weight, indices in zip(weights, sorted_idx): # noqa: B905
for weight, indices in zip(weights, sorted_idx):
motif = tuple(indices)
if motif in motif_weights:
motif_weights[motif] += weight
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ codecov = "^2.1.13"
commitizen = ">=3.2.2,<5.0.0"
coverage = "^7.10.7"
pre-commit = ">=3.3.2,<5.0.0"
ruff = ">=0.5.0,<0.12.12"
ruff = ">=0.5.0,<0.14.4"


[tool.commitizen]
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Mathematics",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_entropy.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ def test_multiscale_permutation_entropy(self):
)

def test_util_pattern_space(self):
self.assertRaises(Exception, ent.util_pattern_space, (TIME_SERIES, 0, 2))
self.assertRaises(Exception, ent.util_pattern_space, (TIME_SERIES, 10, 20))
self.assertRaises(ValueError, ent.util_pattern_space, TIME_SERIES, 0, 2)
self.assertRaises(ValueError, ent.util_pattern_space, TIME_SERIES, 10, 20)
np.testing.assert_array_equal(
ent.util_pattern_space(TIME_SERIES, 2, 3),
np.array([[1, 1, 3], [1, 2, 4], [1, 3, 5]]),
Expand Down