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.
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 willcontinue
inside Larch'sfor
loop and so avoids any problem groups.Functionally, this should result in unchanged functionality, except to avoid edge case bugs.