michalsta / opentims

Open-source C++ and Python module for opening binary timsTOF data files.
Other
41 stars 11 forks source link

fix: support self.frames["Id"] as pd.Series #24

Open Hocnonsense opened 5 months ago

Hocnonsense commented 5 months ago

in timspy, OpenTIMS.frame is converted as a pd.DataFrame, in which self.frames["Id"] will be a pd.Series and do not support the [-1] action.
https://github.com/MatteoLacki/timspy/blob/c9e69e530a002accd2093d0235034732e173836e/timspy/df.py#L14-L24

To use .min() and .max(), these functions can be more robust.