Skip to content

Commit c5ddc01

Browse files
committed
mypy happiness
1 parent 4da7dd5 commit c5ddc01

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ramanchada2/misc/utils/matchsets.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from sklearn.cluster import KMeans
33
from scipy.optimize import linear_sum_assignment
44
import numpy as np
5-
from typing import Dict, List, Tuple
5+
from typing import Dict, Tuple, NDArray
66

77

88
def match_peaks_cluster(
@@ -435,8 +435,9 @@ def match_peaks_monotonic_dynamic_programming(
435435
"distance": distances,
436436
"intensity_diff": inten_diff
437437
})
438-
439-
return matched_spe, matched_ref, distances, df
438+
matched_spe_array: NDArray[np.float64] = np.array(matched_spe[::-1], dtype=float)
439+
matched_ref_array: NDArray[np.float64] = np.array(matched_ref[::-1], dtype=float)
440+
return matched_spe_array, matched_ref_array, distances, df
440441

441442

442443
def match_peaks_monotonic(

0 commit comments

Comments
 (0)