Skip to content

Commit

Permalink
Fix mass spectrum filter not setting the chromatogram dirty.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mailaender committed Jan 21, 2022
1 parent 505355e commit a57279c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public abstract class AbstractMassspectrumFilterProcessTypeSupplier implements I
private final Function<IChromatogramSelection<?, ?>, List<IScanMSD>> extractionFunction;

public AbstractMassspectrumFilterProcessTypeSupplier(String category, String prefix, Function<IChromatogramSelection<?, ?>, List<IScanMSD>> extractionFunction) {

this.category = category;
this.prefix = prefix;
this.extractionFunction = extractionFunction;
Expand Down Expand Up @@ -68,6 +69,7 @@ private static final class MassSpectrumFilterProcessorSupplier extends Chromatog

@SuppressWarnings("unchecked")
public MassSpectrumFilterProcessorSupplier(String prefix, IMassSpectrumFilterSupplier supplier, Function<IChromatogramSelection<?, ?>, List<IScanMSD>> extractionFunction, IProcessTypeSupplier parent) {

super(prefix + supplier.getId(), supplier.getFilterName(), supplier.getDescription(), (Class<IMassSpectrumFilterSettings>)supplier.getConfigClass(), parent, DataType.MSD);
this.supplier = supplier;
this.extractionFunction = extractionFunction;
Expand All @@ -78,6 +80,7 @@ public MassSpectrumFilterProcessorSupplier(String prefix, IMassSpectrumFilterSup

List<IScanMSD> massspectras = extractionFunction.apply(chromatogramSelection);
messageConsumer.addMessages(MassSpectrumFilter.applyFilter(massspectras, processSettings, supplier.getId(), monitor));
chromatogramSelection.getChromatogram().setDirty(true);
return chromatogramSelection;
}
}
Expand Down

0 comments on commit a57279c

Please sign in to comment.