Skip to content

add multiplexing validation#802

Open
mschwoer wants to merge 3 commits intomainfrom
validate_multiplexing
Open

add multiplexing validation#802
mschwoer wants to merge 3 commits intomainfrom
validate_multiplexing

Conversation

@mschwoer
Copy link
Collaborator

@mschwoer mschwoer commented Mar 4, 2026

Add a validation to fail early in malformed multiplexing setups.

@mschwoer mschwoer requested a review from GeorgWa March 4, 2026 15:39
Copy link
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!

"""Validate that the spectral library contains the required channels for multiplexing."""
library_channels = set(self.spectral_library.precursor_df["channel"].unique())
target_channels = [
int(c) for c in self.config["multiplexing"]["target_channels"].split(",")
Copy link
Collaborator

@GeorgWa GeorgWa Mar 9, 2026

Choose a reason for hiding this comment

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

just TODO FYI, we are using both ; and , as separator across alphadia.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

of course we do :-)
I checked:
multiplexing.target_channels and
search.channel_filter are using ","

library_prediction.fixed_modifications and
library_prediction.variable_modifications are using ";"
anything else you are are aware of?

should we aim to unify that?

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.

2 participants