Author: bugman
Date: Thu Jan 15 10:25:36 2015
New Revision: 27193
URL: http://svn.gna.org/viewcvs/relax?rev=27193&view=rev
Log:
More robustness for the spin viewer GUI window update_*() methods.
The data returned from the self.tree.GetItemPyData(key) call can in rare racing
cases not contain
the 'id' key. This is now being checked for and are being skipped in the
update_mol(), update_res()
and update_spin() methods.
The problem was found in the Mf.test_bug_20479_gui_final_pipe system test when
running the command:
for i in {1..10}; do ./relax --gui-tests --time -d &>> gui_tests.log; done
Modified:
trunk/gui/spin_viewer/tree.py
Modified: trunk/gui/spin_viewer/tree.py
URL:
http://svn.gna.org/viewcvs/relax/trunk/gui/spin_viewer/tree.py?rev=27193&r1=27192&r2=27193&view=diff
==============================================================================
--- trunk/gui/spin_viewer/tree.py (original)
+++ trunk/gui/spin_viewer/tree.py Thu Jan 15 10:25:36 2015
@@ -933,7 +933,7 @@
data = self.tree.GetItemPyData(key)
# No info.
- if data == None:
+ if data == None or 'id' not in data:
continue
# Check the mol_id for a match and, if so, terminate to speed
things up.
@@ -1010,7 +1010,7 @@
data = self.tree.GetItemPyData(key)
# No info.
- if data == None:
+ if data == None or 'id' not in data:
continue
# Check the res_id, res name, and res number for a match and, if
so, terminate to speed things up.
@@ -1090,7 +1090,7 @@
data = self.tree.GetItemPyData(key)
# No info.
- if data == None:
+ if data == None or 'id' not in data:
continue
# Check the spin_id, spin name and spin number for a match and, if
so, terminate to speed things up.
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits