File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/ramanchada2/misc/utils Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 22from sklearn .cluster import KMeans
33from scipy .optimize import linear_sum_assignment
44import numpy as np
5- from typing import Dict , List , Tuple
5+ from typing import Dict , Tuple , NDArray
66
77
88def 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
442443def match_peaks_monotonic (
You can’t perform that action at this time.
0 commit comments