Menu

#143 delete display from console broken

3.0.0
closed
wb104
None
3
2016-10-26
2016-08-26
No

If you open the software, drag in a internal/data/1dMetsSpectra/1 then click on the x to close the 1d display created, you get this command in the log:

project.deleteObjects('GD:user.View.1D:H')

If you then repeat the above steps, but instead of clicking on the x, you execute that command in the python console, the window doesn't dissapear and if you move the mouse over the window you get many copies of:

Traceback (most recent call last):
File "/Users/tjr22/Documents/PycharmProjects/Analysis3/ccpnv3/src/python/ccpn/ui/gui/modules/GuiStrip.py", line 619, in _mouseMoved
for n, axis in enumerate(self.orderedAxes):
AttributeError: 'Strip1d' object has no attribute 'orderedAxes'
Traceback (most recent call last):
File "/Users/tjr22/Documents/PycharmProjects/Analysis3/ccpnv3/src/python/ccpn/ui/gui/modules/GuiStrip.py", line 646, in _showMousePosition
(self.axisOrder[0], position.x(), self.axisOrder[1], position.y())
AttributeError: 'Strip1d' object has no attribute 'axisOrder'

Discussion

  • Timothy J Ragan

    Timothy J Ragan - 2016-08-26
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -5,6 +5,10 @@
     If you then repeat the above steps, but instead of clicking on the x, you execute that command in the python console, the window doesn't dissapear and if you move the mouse over the window you get many copies of:
    
     Traceback (most recent call last):
    
    +  File "/Users/tjr22/Documents/PycharmProjects/Analysis3/ccpnv3/src/python/ccpn/ui/gui/modules/GuiStrip.py", line 619, in _mouseMoved
    +    for n, axis in enumerate(self.orderedAxes):
    +AttributeError: 'Strip1d' object has no attribute 'orderedAxes'
    +Traceback (most recent call last):
       File "/Users/tjr22/Documents/PycharmProjects/Analysis3/ccpnv3/src/python/ccpn/ui/gui/modules/GuiStrip.py", line 646, in _showMousePosition
         (self.axisOrder[0], position.x(), self.axisOrder[1], position.y())
     AttributeError: 'Strip1d' object has no attribute 'axisOrder'
    
     
  • wb104

    wb104 - 2016-09-09

    I'm now hitting a more fundamental issue. A bug is being thrown even when you hit the x:

    Traceback (most recent call last):
    File "/Users/wb104/svnsf/trunk/ccpnv3/src/python/ccpn/ui/gui/modules/GuiSpectrumDisplay.py", line 155, in _closeModule
    self.delete()
    File "/Users/wb104/svnsf/trunk/ccpnv3/src/python/ccpn/core/_implementation/AbstractWrapperObject.py", line 313, in delete
    self._wrappedData.delete()
    File "/Users/wb104/svnsf/trunk/ccpnv3/src/python/ccpnmodel/ccpncore/api/memops/Implementation.py", line 3576, in delete
    notify(obj)
    File "/Users/wb104/svnsf/trunk/ccpnv3/src/python/ccpn/core/Project.py", line 729, in _finaliseApiDelete
    obj._finaliseAction('delete')
    File "/Users/wb104/svnsf/trunk/ccpnv3/src/python/ccpn/core/_implementation/AbstractWrapperObject.py", line 654, in _finaliseAction
    notifier(self)
    File "/Users/wb104/svnsf/trunk/ccpnv3/src/python/ccpn/ui/gui/modules/spectrumItems/GuiPeakListView.py", line 190, in _deletedStripPeakListView
    peakItemDict = spectrumDisplay.activePeakItemDict[self]
    KeyError: <ccpn.peaklistview:user.view.1d:h.1.test1a.2></ccpn.peaklistview:user.view.1d:h.1.test1a.2>

    It looks like (from debugging) that two peak lists are being created and so two peak list views, and the showPeaks() function has not been called on the second. But should two peak lists be being created?

     
  • Geerten W. Vuister

    • assigned_to: wb104
     
  • wb104

    wb104 - 2016-10-04

    Second problem (the delete notifier issue) is solved and the first problem is not happening for me now (but maybe it still is for others).

     
  • wb104

    wb104 - 2016-10-26
    • status: open --> closed
     
  • wb104

    wb104 - 2016-10-26

    Closed until someone can reproduce...

     

Log in to post a comment.

MongoDB Logo MongoDB