Skip to content

Add timstof 2#117

Open
mschwoer wants to merge 17 commits intomove_to_peptdeepfrom
add_timstof_2
Open

Add timstof 2#117
mschwoer wants to merge 17 commits intomove_to_peptdeepfrom
add_timstof_2

Conversation

@mschwoer
Copy link
Copy Markdown
Contributor

@mschwoer mschwoer commented Mar 17, 2026

Moves the core parts of the TimsTOF class to alpharaw.
Code produces same results as before.

Copy link
Copy Markdown
Collaborator

@GeorgWa GeorgWa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!
Can we get rid of some of the deprecated functions?

@@ -19,9 +19,5 @@ def load_ms_data(*args, **kwargs):
raise DeprecationWarning(f"load_ms_data {_DEPRECATION_MSG}")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is one reemoved but not the other ones? should we aim for a major release to get rid of all of them?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the removed code was unused (scope: whole of github ;-))
The deprecationwarnings are for the moved code only.

and yes, at some point we should get rid of all those, until then I think the noise they add is tolerable

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part was previously used by alphaviz, but it seems that alphaviz used alphatims structure instead of alpharaw

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we shall keep alpharaw clean for raw reader purpose.

This is used to allow subclasses to override the array creation with memory-mapped arrays."""
return np.empty

def _parse_quad_indptr(self) -> None:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems like this is one of the few complex logic functions left.
So slimed down quite a bit! nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants