changing parameter values on a model throws a numpy error.
Closed this issue · 1 comments
butlerpd commented
Describe the bug
Sometime recently -- guessing during the hackathon or just before, a new bug seems to have been introduced. Not sure if it is already being addressed but documenting here before I forget just in case.
Sending data to a fitpage then manually changing values and plotting throws the following error but not 100% of the time. It does not seem to throw any errors if doing the same thing without data (i.e. a theory curve). Moreover it seems to still perform the calculation correctly.
20:20:49 - ERROR: Traceback (most recent call last):
File "sas\qtgui\MainWindow\GuiManager.py", line 1346, in showPlot
File "sas\qtgui\MainWindow\DataExplorer.py", line 1118, in displayData
File "sas\qtgui\MainWindow\DataExplorer.py", line 1316, in updatePlot
File "sas\qtgui\Plotting\Plotter.py", line 645, in replacePlot
File "sas\qtgui\Plotting\Plotter.py", line 288, in plot
File "numpy\core\fromnumeric.py", line 2953, in min
File "numpy\core\fromnumeric.py", line 88, in _wrapreduction
ValueError: zero-size array to reduction operation minimum which has no identity
To Reproduce
Steps to reproduce the behavior:
- Start the application
- Load apoferritin data from example_data/1D
- Send to fitting
- Choose sphere, core_shell_sphere
- Press
Compute/Plot
- change
sld_core
to 6.4 (essentially a hollow sphere with D20 in the middle) - Error thrown - but calculation proceeds
- change
sld_solvent
to 6.4 (D20 solvent) - Error thrown .. twice - but calculation proceeds
- change
scale
to 0.001 (0.1% vol fraction) - Error thrown - but calculation proceeds
8.changescale
to 0.00001 (0.001%) - NO error ...
Expected behavior
no error thrown.
SasView version (please complete the following information):
- Version: 6.0.0b2 (PR 2086 and 3084 .. both had main merged into them today and neither of these PR has changes that could remotely do this IMO)
Operating system (please complete the following information):
- OS: e.g. Windows 10