Skip to content

Commit

Permalink
fix issue with peak_rt_of_max
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenwacker committed Aug 22, 2023
1 parent 64ea96c commit 64a5dc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ms_mint/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def extract_ms1_properties(array, mz_mean):
peak_max = intensities.max()
peak_min = intensities.min()
peak_median = np.median(intensities)

peak_rt_of_max = times[intensities.argmax()]

peak_delta_int = np.abs(intensities[0] - intensities[-1])
Expand Down
2 changes: 1 addition & 1 deletion tests/test__processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test__process_ms1():
}, # The only value in the extraction window is 3, therefore the expected value is 1
"peak_n_datapoints": {0: 1},
"peak_max": {0: 3},
"peak_rt_of_max": {0: 3},
"peak_rt_of_max": {0: 2},
"peak_min": {0: 3},
"peak_median": {0: 3.0},
"peak_mean": {0: 3.0},
Expand Down

0 comments on commit 64a5dc5

Please sign in to comment.