Re: [bug #23187] Deleting residue in GUI, and then open spin viewer crashes relax.

2015-01-14 Thread Troels Emtekær Linnet
Hi Ed. I still see the error. Best Troels 2015-01-14 15:35 GMT+01:00 Edward d Auvergne no-reply.invalid-addr...@gna.org: Follow-up Comment #7, bug #23187 (project relax): Ok, I've fixed the GUI code: http://article.gmane.org/gmane.science.nmr.relax.scm/24915 Now to work out how the

[bug #23187] Deleting residue in GUI, and then open spin viewer crashes relax.

2015-01-14 Thread Edward d Auvergne
Follow-up Comment #7, bug #23187 (project relax): Ok, I've fixed the GUI code: http://article.gmane.org/gmane.science.nmr.relax.scm/24915 Now to work out how the error can be caught in the test! ___ Reply to this item at:

Re: [bug #23187] Deleting residue in GUI, and then open spin viewer crashes relax.

2015-01-14 Thread Edward d'Auvergne
Hi, The fix was so that the error is now visible in the GUI test. However the test passes so you only see it when the debug flag is given. I'm not sure how to propagate the error yet - something is catching it and allowing the program to continue executing normally, despite the spin viewer

Re: [bug #23187] Deleting residue in GUI, and then open spin viewer crashes relax.

2015-01-14 Thread Edward d'Auvergne
I already have a patch which fixes the error, but I'd like to work out how we can catch it first. Regards, Edward On 14 January 2015 at 16:17, Edward d'Auvergne edw...@nmr-relax.com wrote: Hi, The fix was so that the error is now visible in the GUI test. However the test passes so you

[bug #23187] Deleting residue in GUI, and then open spin viewer crashes relax.

2015-01-14 Thread Edward d Auvergne
Follow-up Comment #9, bug #23187 (project relax): Unfortunately I don't think that this bug can be caught in the relax test suite as the wxPython RuntimeError handler seems to be completely incompatible with the Python unittest framework.

[bug #23187] Deleting residue in GUI, and then open spin viewer crashes relax.

2015-01-14 Thread Edward d Auvergne
Follow-up Comment #1, bug #23187 (project relax): I cannot reproduce the bug with the following steps: 1) Start relax in GUI mode. 2) Open the prompt window. 3) Type: pipe.create('test', 'mf') residue.create(res_num=1) residue.create(res_num=2) residue.delete(':2') 4) Close the prompt

[bug #23187] Deleting residue in GUI, and then open spin viewer crashes relax.

2015-01-14 Thread Edward d Auvergne
Follow-up Comment #2, bug #23187 (project relax): I also have no problem on 64-bit Linux with wxPython 2.9.4.1 gtk2 (classic). ___ Reply to this item at: http://gna.org/bugs/?23187 ___

Re: [bug #23187] Deleting residue in GUI, and then open spin viewer crashes relax.

2015-01-14 Thread Edward d'Auvergne
Hi Troels, To implement this, you just need the following 3 lines of code: # Launch the spin viewer window. self.app.gui.show_tree() # Close the spin viewer window. self.app.gui.spin_viewer.handler_close() # Launch the spin viewer window.

Re: [bug #23187] Deleting residue in GUI, and then open spin viewer crashes relax.

2015-01-14 Thread Troels Emtekær Linnet
If I do: 1) Start relax in GUI mode. 2) Open the prompt window. 3) Type: pipe.create('test', 'mf') residue.create(res_num=1) residue.create(res_num=2) 4) Close the prompt window. 5) Open spin viewer, close spin viewer. 6) Open the prompt window. 7) residue.delete(':2') 8) Close the

Re: [bug #23187] Deleting residue in GUI, and then open spin viewer crashes relax.

2015-01-14 Thread Edward d'Auvergne
Hi, Now I can reproduce it :) Could you code this into a GUI test? The other bug should have much higher priority though. Cheers, Edward On 14 January 2015 at 14:38, Troels Emtekær Linnet tlin...@nmr-relax.com wrote: If I do: 1) Start relax in GUI mode. 2) Open the prompt window. 3)

Re: [bug #23187] Deleting residue in GUI, and then open spin viewer crashes relax.

2015-01-14 Thread Troels Emtekær Linnet
Hi Edward. I always had quite a fight to implement gui tests. The calling to the wx code is weird for me. I would not know how to open the spin viewer, and the close it. Best 2015-01-14 14:44 GMT+01:00 Edward d'Auvergne edw...@nmr-relax.com: Hi, Now I can reproduce it :) Could you code

[bug #23187] Deleting residue in GUI, and then open spin viewer crashes relax.

2015-01-14 Thread Troels E. Linnet
Follow-up Comment #3, bug #23187 (project relax): def test_bug_23187_residue_delete_gui(self): Catch U{bug #23187https://gna.org/bugs/?23187}, deleting residue in GUI, and then open spin viewer crashes relax. # Mf tab: Simulate the new analysis wizard. analysis =

[bug #23187] Deleting residue in GUI, and then open spin viewer crashes relax.

2015-01-14 Thread Troels E. Linnet
Follow-up Comment #4, bug #23187 (project relax): This will NOT catch the error. ___ Reply to this item at: http://gna.org/bugs/?23187 ___ Message sent via/by Gna! http://gna.org/