Describe the bug
Subtracting the same model leads to an ugly exception being thrown.
File "C:\projects\sas\sasview\src\sas\qtgui\Calculators\DataOperationUtilityPanel.py", line 430, in updatePlot
plotter.plot(data=data, hide_error=True, marker='.')
File "C:\projects\sas\sasview\src\sas\qtgui\Plotting\Plotter.py", line 305, in plot
self.ax.set_xbound(x_range[0], x_range[1])
File "C:\Users\piotrrozyczko\.conda\envs\sas\Lib\site-packages\matplotlib\axes\_base.py", line 3707, in set_xbound
self.set_xlim(sorted((lower, upper),
File "C:\Users\piotrrozyczko\.conda\envs\sas\Lib\site-packages\matplotlib\axes\_base.py", line 3828, in set_xlim
return self.xaxis._set_lim(left, right, emit=emit, auto=auto)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\piotrrozyczko\.conda\envs\sas\Lib\site-packages\matplotlib\axis.py", line 1216, in _set_lim
v0 = self.axes._validate_converted_limits(v0, self.convert_units)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\piotrrozyczko\.conda\envs\sas\Lib\site-packages\matplotlib\axes\_base.py", line 3749, in _validate_converted_limits
raise ValueError("Axis limits cannot be NaN or Inf")
ValueError: Axis limits cannot be NaN or Inf
To Reproduce
Steps to reproduce the behavior:
- Open Data Operation widget
- Load a single dataset
- Load that dataset to both segments of the Data Operation widget
- Select subtraction
- Click Compute
- Observe exception
Expected behavior
A warning message in the log explorer
SasView version (please complete the following information):
Operating system (please complete the following information):
Installation method (please complete the following information):
Describe the bug
Subtracting the same model leads to an ugly exception being thrown.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A warning message in the log explorer
SasView version (please complete the following information):
Operating system (please complete the following information):
Installation method (please complete the following information):