Skip to content

Commit 0b52374

Browse files
committed
fix
1 parent e27027f commit 0b52374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ms2query/metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,6 @@ def compute_cosine_greedy(cosine_obj, spectra):
482482
scores_data = np.array(scores, dtype=cosine_obj.score_datatype)
483483
# TODO: make StackedSparseArray the default and add fixed function to output different formats (with code below)
484484

485-
scores_array = np.zeros(shape=(n_rows, n_cols), dtype=self.score_datatype)
485+
scores_array = np.zeros(shape=(n_rows, n_cols), dtype=cosine_obj.score_datatype)
486486
scores_array[idx_row, idx_col] = scores_data.reshape(-1)
487487
return scores_array

0 commit comments

Comments
 (0)