MaterialsGalaxy / larch-tools

Galaxy tool wrappers for Larch analysis tools for X-ray spectroscopy
MIT License
2 stars 0 forks source link

Use provided key early when selecting group in athena #77

Closed patrick-austin closed 2 months ago

patrick-austin commented 2 months ago

Current method of selection loads all groups with Larch, then applies any selection criteria. This means if one of the groups fails to load, then the whole read operation fails. This can occur when the group does not actually represent a spectra with an x value of energy. This can be avoided by using the match parameter, which will continue inside Larch's for loop and so avoids any problem groups.

Functionally, this should result in unchanged functionality, except to avoid edge case bugs.