Skip to content

Conversation

@robinschmid
Copy link
Member

No description provided.

@robinschmid
Copy link
Member Author

Done from my side.
One more thing for another PR would be how to tell people that chromatogram building on both polarities does not work

@ansgarkorf
Copy link
Member

Done from my side. One more thing for another PR would be how to tell people that chromatogram building on both polarities does not work

We can validate the parameters before triggering the task and show a message box if polarity "ANY" was chosen for polarity switching data. The message should also point the user to polarity scan filter option

@robinschmid robinschmid linked an issue May 14, 2024 that may be closed by this pull request
@robinschmid
Copy link
Member Author

Not sure its usually multiple tasks running in parallel - so we would need to have a mechanism to only show one dialog.
Also I would say the dialog should not block the processing but just show up.

I will create a new issue for this.
#1846

Comment on lines 98 to 99
polarityCombo = new ComboBox<>(FXCollections.observableList(
List.of(WizardMsPolarity.No_filter, WizardMsPolarity.Positive, WizardMsPolarity.Negative)));
Copy link
Member

Choose a reason for hiding this comment

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

stick to PolarityType

Copy link
Member

Choose a reason for hiding this comment

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

use string converter -> any -> no filter

Copy link
Member Author

Choose a reason for hiding this comment

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

using PolarityType now and made a PolarityFilterComboBox to hide the StringConverter No filter is now Any polarity


import io.github.mzmine.datamodel.PolarityType;

public enum WizardMsPolarity {
Copy link
Member

Choose a reason for hiding this comment

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

make package private to wizard package

Copy link
Member Author

Choose a reason for hiding this comment

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

problem is that it is being used by the parameters and the builders that are in different subpackages. So cannot be package private

Copy link
Member Author

Choose a reason for hiding this comment

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

at least now its only used in wizard

@robinschmid
Copy link
Member Author

All done

@SteffenHeu SteffenHeu merged commit 892baf1 into mzmine:master May 16, 2024
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.

Polarity filter in wizard

3 participants