File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -139,9 +139,9 @@ def _get_precursor_values(
139139 precursor_dict [run_name ] = precursors
140140
141141 # Reshape precursor values into arrays matching PSM list
142- mzs = np .array ( precursor_dict [psm .run ][psm .spectrum_id ].mz for psm in psm_list )
143- rts = np .array ( precursor_dict [psm .run ][psm .spectrum_id ].rt for psm in psm_list )
144- ims = np .array ( precursor_dict [psm .run ][psm .spectrum_id ].im for psm in psm_list )
142+ mzs = np .fromiter (( precursor_dict [psm .run ][psm .spectrum_id ].mz for psm in psm_list ), float )
143+ rts = np .fromiter (( precursor_dict [psm .run ][psm .spectrum_id ].rt for psm in psm_list ), float )
144+ ims = np .fromiter (( precursor_dict [psm .run ][psm .spectrum_id ].im for psm in psm_list ), float )
145145
146146 return mzs , rts , ims
147147
You can’t perform that action at this time.
0 commit comments