Skip to content

Commit

Permalink
Fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
laszukdawid committed Oct 29, 2021
1 parent 22bc418 commit 6d78eb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion PyEMD/EMD.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ def _not_duplicate(S: np.ndarray) -> np.ndarray:
dup = np.r_[S[1:-1] == S[0:-2]] & np.r_[S[1:-1] == S[2:]]
not_dup_idx = np.arange(1, len(S) - 1)[~dup]

idx = np.empty(len(not_dup_idx) + 2, dtype=np.int)
idx = np.empty(len(not_dup_idx) + 2, dtype=np.int64)
idx[0] = 0
idx[-1] = len(S) - 1
idx[1:-1] = not_dup_idx
Expand Down
4 changes: 2 additions & 2 deletions PyEMD/tests/test_extrema.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def test_find_extrema_simple(self):
self.assertEqual(nz.tolist(), expZeros.tolist())

def test_find_extrema_simple_repeat(self):
"""
r"""
Test what happens in /^^\ situation, i.e.
when extremum is somewhere between two consecutive pts.
"""
Expand Down Expand Up @@ -181,7 +181,7 @@ def test_find_extrema_parabol(self):
self.assertEqual(minVal.tolist(), expMinVal)

def test_find_extrema_parabol_repeat(self):
"""
r"""
Test what happens in /^^\ situation, i.e.
when extremum is somewhere between two consecutive pts.
"""
Expand Down

0 comments on commit 6d78eb4

Please sign in to comment.