SasView / sasview

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

GSC not drawing the structure #2734

Closed smk78 closed 2 months ago

smk78 commented 8 months ago

Describe the bug Testing GSC in 6.0.0a1 Nightly Build 121 from main on W10/x64.

PDB file loads, but on clicking 'Draw' get the error:

2024-01-17 19:35:53,716 : ERROR : sas.qtgui.Perspectives.Fitting.FittingWidget (FittingWidget.py:173) :: Traceback (most recent call last):
  File "sas\qtgui\Calculators\GenericScatteringCalculator.py", line 128, in <lambda>
  File "sas\qtgui\Calculators\GenericScatteringCalculator.py", line 1546, in plot3d
  File "sas\qtgui\Calculators\GenericScatteringCalculator.py", line 1799, in __init__
  File "sas\qtgui\Calculators\GenericScatteringCalculator.py", line 1599, in __init__
  File "sas\qtgui\Plotting\PlotterBase.py", line 30, in __init__
RuntimeError: You can't initialize an PySide6.QtWidgets.QWidget object in class Plotter3D twice!

To Reproduce Run SasView Tools > Generic Scattering Calculator Load a PDB file as Nuclear Data Click Draw (not compute)

Expected behavior The structure of the object described by the coordinate data should be drawn.

Additional context This is a bug introduced since 5.0.6

butlerpd commented 2 months ago

Oops ... #2818 was a duplicate of this and has since been closed as fixed by @rozyczko in PR #2824. So closing this ticket. @smk78, if this is a different bug feel free to reopen but note the difference with #2818 please.