JYU-IBA / potku

Potku is analysis and simulation software for ToF-ERD measurements
https://www.jyu.fi/science/en/physics/research/infrastructures/accelerator-laboratory/pelletron/potku/
GNU General Public License v2.0
7 stars 7 forks source link

Deleted elements aren't deleted from sum spectra #222

Open tpitkanen opened 3 years ago

tpitkanen commented 3 years ago

If an element that is in a sum energy spectrum is deleted, the sum spectrum stays unchanged. Nothing calls SumEnergySpectrum.delete_spectra(...).

jkpnen commented 2 years ago

@tpitkanen , are there currently any events where this feature would have been desired?

tpitkanen commented 2 years ago

@tpitkanen , are there currently any events where this feature would have been desired?

The use cases are the same as in #230. Whenever an element is removed, the change should be reflected in the user interface (a removed element should be deleted from the espe plot, and it should also trigger an update in a sum spectrum).