SasView / sasview

Code for the SasView application.
BSD 3-Clause "New" or "Revised" License
49 stars 41 forks source link

quick plots no longer possible after fitting a restricted Q range #3056

Open butlerpd opened 4 weeks ago

butlerpd commented 4 weeks ago

Describe the bug This is apparently not easily reproducible. However given a traceback error was captured, I am reporting it as an issue. This error seems to occur much more frequently on Macs, but has occasionally been reported by Windows users as well.

This error is reported to happen after restricting the Q range of a fit (in the FitPage Options tab) from the full range available in the data file. Plotting (quick plot, or send to plot) or saving the structure factors no longer work. The log explorer window gives the following error:

11:21:14 - ERROR: Traceback (most recent call last): File "sas\qtgui\MainWindow\DataExplorer.py", line 1678, in quickDataPlot
File "sas\qtgui\Plotting\Plotter.py", line 131, in plot 
File "sas\qtgui\Utilities\GuiUtils.py", line 864, in xyTransform
File "sas\qtgui\Plotting\Plottables.py", line 577, in transformView
File "sas\qtgui\Plotting\Plottables.py", line 693, in transform ValueError: Plottable.View: Given y and x are not of the same length

SasView version (please complete the following information):

Operating system (please complete the following information):

Additional context Identified during the NIST CNR summer school. However, given it is hard to reproduce and that it is reported to have happened in previous version and that it does not cause incorrect results to be published I am not going to label it with the 6.0.0 release label.

krzywon commented 3 weeks ago

This has been around for a while and should not be included in release 6 unless it needs to be fixed to fix another 6.0 specific issue. I'm removing it from the hackathon project list.