Skip to content
Open
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
4 changes: 2 additions & 2 deletions abydos/distance/_aline.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from copy import deepcopy
from typing import Any, Callable, Dict, List, Tuple, Union, cast

from numpy import float_, inf, zeros
from numpy import float64, inf, zeros

from ._distance import _Distance

Expand Down Expand Up @@ -1593,7 +1593,7 @@ def _record(score: float, out: List[Tuple[str, str]]) -> None:

tar_len = len(tar_tok)

s_mat = zeros((src_len + 1, tar_len + 1), dtype=float_)
s_mat = zeros((src_len + 1, tar_len + 1), dtype=float64)

if self._mode == 'global':
for i in range(1, src_len + 1):
Expand Down
2 changes: 1 addition & 1 deletion abydos/distance/_bisim.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

from typing import Any, cast

from numpy import float_ as np_float
from numpy import float64 as np_float
from numpy import zeros as np_zeros

from ._distance import _Distance
Expand Down
2 changes: 1 addition & 1 deletion abydos/distance/_discounted_levenshtein.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def _alignment_matrix(
else:
discount_from = [1, 1]

d_mat = np.zeros((src_len + 1, tar_len + 1), dtype=np.float_)
d_mat = np.zeros((src_len + 1, tar_len + 1), dtype=np.float64)
if backtrace:
trace_mat = np.zeros((src_len + 1, tar_len + 1), dtype=np.int8)
for i in range(1, src_len + 1):
Expand Down
2 changes: 1 addition & 1 deletion abydos/distance/_editex.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from typing import Any, Tuple, cast
from unicodedata import normalize as unicode_normalize

from numpy import float_ as np_float
from numpy import float64 as np_float
from numpy import zeros as np_zeros

from ._distance import _Distance
Expand Down
2 changes: 1 addition & 1 deletion abydos/distance/_flexmetric.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
cast,
)

from numpy import float_ as np_float
from numpy import float64 as np_float
from numpy import zeros as np_zeros

from ._distance import _Distance
Expand Down
2 changes: 1 addition & 1 deletion abydos/distance/_gotoh.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"""
from typing import Any, Callable, Optional, cast

from numpy import float_ as np_float
from numpy import float64 as np_float
from numpy import zeros as np_zeros

from ._needleman_wunsch import NeedlemanWunsch
Expand Down
2 changes: 1 addition & 1 deletion abydos/distance/_levenshtein.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def _alignment_matrix(
tar_len = len(tar)
max_len = max(src_len, tar_len)

d_mat = np.zeros((src_len + 1, tar_len + 1), dtype=np.float_)
d_mat = np.zeros((src_len + 1, tar_len + 1), dtype=np.float64)
if backtrace:
trace_mat = np.zeros((src_len + 1, tar_len + 1), dtype=np.int8)
for i in range(src_len + 1):
Expand Down
2 changes: 1 addition & 1 deletion abydos/distance/_meta_levenshtein.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
cast,
)

from numpy import float_ as np_float
from numpy import float64 as np_float
from numpy import zeros as np_zeros

from ._distance import _Distance
Expand Down
2 changes: 1 addition & 1 deletion abydos/distance/_needleman_wunsch.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

from typing import Any, Callable, Dict, Optional, Tuple, cast

from numpy import float_ as np_float
from numpy import float64 as np_float
from numpy import zeros as np_zeros

from ._distance import _Distance
Expand Down
2 changes: 1 addition & 1 deletion abydos/distance/_phonetic_edit_distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def _alignment_matrix(
src_list = ipa_to_features(src)
tar_list = ipa_to_features(tar)

d_mat = np.zeros((src_len + 1, tar_len + 1), dtype=np.float_)
d_mat = np.zeros((src_len + 1, tar_len + 1), dtype=np.float64)
if backtrace:
trace_mat = np.zeros((src_len + 1, tar_len + 1), dtype=np.int8)
for i in range(1, src_len + 1):
Expand Down
2 changes: 1 addition & 1 deletion abydos/distance/_smith_waterman.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

from typing import Any, Callable, Optional, cast

from numpy import float_ as np_float
from numpy import float64 as np_float
from numpy import zeros as np_zeros

from ._needleman_wunsch import NeedlemanWunsch
Expand Down
2 changes: 1 addition & 1 deletion abydos/distance/_typo.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from math import log
from typing import Any, Dict, Tuple, cast

from numpy import float_ as np_float
from numpy import float64 as np_float
from numpy import zeros as np_zeros

from ._distance import _Distance
Expand Down