Skip to content

Add timstof 2#117

Merged
mschwoer merged 17 commits into
mainfrom
add_timstof_2
Jun 2, 2026
Merged

Add timstof 2#117
mschwoer merged 17 commits into
mainfrom
add_timstof_2

Conversation

@mschwoer

@mschwoer mschwoer commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

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

@GeorgWa GeorgWa left a comment

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.

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

Base automatically changed from move_to_peptdeep to main June 2, 2026 08:02
@mschwoer mschwoer merged commit d12e28d into main Jun 2, 2026
2 checks passed
@mschwoer mschwoer deleted the add_timstof_2 branch June 2, 2026 08:02
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