We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e27027f commit 0b52374Copy full SHA for 0b52374
ms2query/metrics.py
@@ -482,6 +482,6 @@ def compute_cosine_greedy(cosine_obj, spectra):
482
scores_data = np.array(scores, dtype=cosine_obj.score_datatype)
483
# TODO: make StackedSparseArray the default and add fixed function to output different formats (with code below)
484
485
- scores_array = np.zeros(shape=(n_rows, n_cols), dtype=self.score_datatype)
+ scores_array = np.zeros(shape=(n_rows, n_cols), dtype=cosine_obj.score_datatype)
486
scores_array[idx_row, idx_col] = scores_data.reshape(-1)
487
return scores_array
0 commit comments