Closed wincowgerDEV closed 9 months ago
I think its actually better in this case just to disallow filtering to zero and produce a helpful error message there. I don't know of a case where a zero spectra open specy object should be allowed or would be useful.
Guidelines
Project Version
No response
Platform and OS Version
No response
Existing Issues
No response
What happened?
When a zero spectra OpenSpecy object is sent to plotly_spec the error message says intensity not found which isn't super intuitive, could fix in two places, perhaps in the plotly_spec we require more than zero spectra and in the filter we throw a warning that they created a zero order OpenSpecy.
Steps to reproduce
Expected behavior
Helpful message
Attachments
No response
Screenshots or Videos
No response
Additional Information
No response