Minor inconvenience, as the operation is invalid anyway, but instead of showing that the data has the wrong size in the regular way, an error ("program error, please report") is shown in the toolbar.
Put the attached example data in a JSON file, load it in ssnake
Matrix -> Multiply this data with [2,2] or [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] (anything with a non-matching size)
"Program error, please report"
Traceback (most recent call last):
File "widgetClasses.py", line 407, in applyAndClose self.applyFunc()
File "ssNake.py", line 6048, in applyFunc self.father.current.multiply(np.array(val), self.singleSlice.isChecked())
File "views.py", line 1861, in multiply self.data.multiply(data, self.axes[-1], select=selectSlice)
File "spectrum.py", line 578, in multiply self.data[select] *= data
File "hypercomplex.py", line 209, in __imul__ self.data *= other
ValueError: operands could not be broadcast together with shapes (1,1,2,14) (15,) (1,1,2,14)
Minor inconvenience, as the operation is invalid anyway, but instead of showing that the data has the wrong size in the regular way, an error ("program error, please report") is shown in the toolbar.
[2,2]
or[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
(anything with a non-matching size)Example data