You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
doesn't work for an analysis with multiple dataset, including some guidance spectra (it crashes on creating the result for the first guidance spectra) because self._group.matrices then returns a list of CalculatedMatrix objects, instead of a single CalculatedMatrix object.
* 🩹Fix bug in create_index_independent_result_dataset
- Indexing did not match content of _group.matrices (list of CalculatedMatrix objects)
- Dimension did not match (for guidance spectra) (global_dimension_index appeared to be missing
* 'Refactored by Sourcery'
* 👌Make setting dataset["matrix"] type(self._group.matrices) dependent
- 🩹 Fix Crash in optimization_group_calculator_linked when using guidance spectra Type: Bug (#950)
Closes: #950
* 📚 Add change to changelog
This PR closes#950
Co-authored-by: Sourcery AI <>
Version information
Describe the bug
The code
doesn't work for an analysis with multiple dataset, including some guidance spectra (it crashes on creating the result for the first guidance spectra) because self._group.matrices then returns a list of CalculatedMatrix objects, instead of a single CalculatedMatrix object.
A fix would be
but only in the case where the result is a list of CalcualtedMatrix objects.
To Reproduce
Run the Artificial Lego example.
Expected behavior
No crashes, while also not failing for all existing examples and unit tests.
Possible fix
Testing what the type is and excuting case dependent code.
The text was updated successfully, but these errors were encountered: