mailr20245 - /trunk/gui/analyses/auto_model_free.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on June 21, 2013 - 11:46:
Author: bugman
Date: Fri Jun 21 11:46:23 2013
New Revision: 20245

URL: http://svn.gna.org/viewcvs/relax?rev=20245&view=rev
Log:
Fix for bug #20921 (https://gna.org/bugs/?20921), the GUI tests freezing in 
MS Windows.

The problem was that the dipolar interaction wizard in the model-free 
auto-analysis GUI element was
calling its user functions asynchronously.  This can lead to racing 
conditions.  The commit r80084
(http://article.gmane.org/gmane.science.nmr.relax.scm/17840) somehow randomly 
triggers this racing
on MS Windows systems only together with the Mf.test_mf_auto_analysis GUI 
test.  Now all user
functions are called synchronously.


Modified:
    trunk/gui/analyses/auto_model_free.py

Modified: trunk/gui/analyses/auto_model_free.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/gui/analyses/auto_model_free.py?rev=20245&r1=20244&r2=20245&view=diff
==============================================================================
--- trunk/gui/analyses/auto_model_free.py (original)
+++ trunk/gui/analyses/auto_model_free.py Fri Jun 21 11:46:23 2013
@@ -684,28 +684,28 @@
         # Structural data.
         if not hasattr(cdp, 'structure'):
             # Create the PDB reading page.
-            page = 
uf_store['structure.read_pdb'].create_page(self.dipole_wizard)
+            page = 
uf_store['structure.read_pdb'].create_page(self.dipole_wizard, sync=True)
             self.dipole_wizard.add_page(page, skip_button=True)
 
             # Create the position reading page.
-            page = 
uf_store['structure.get_pos'].create_page(self.dipole_wizard)
+            page = 
uf_store['structure.get_pos'].create_page(self.dipole_wizard, sync=True)
             self.dipole_wizard.add_page(page, skip_button=True)
 
         # Create the interatom.define page.
-        page = uf_store['interatom.define'].create_page(self.dipole_wizard)
+        page = uf_store['interatom.define'].create_page(self.dipole_wizard, 
sync=True)
         page.SetValue('spin_id1', '@N')
         page.SetValue('spin_id2', '@H')
         self.dipole_wizard.add_page(page)
 
         # Create the interatom.set_dist page.
-        page = uf_store['interatom.set_dist'].create_page(self.dipole_wizard)
+        page = 
uf_store['interatom.set_dist'].create_page(self.dipole_wizard, sync=True)
         page.SetValue('spin_id1', '@N*')
         page.SetValue('spin_id2', '@H*')
         page.SetValue('ave_dist', NH_BOND_LENGTH)
         self.dipole_wizard.add_page(page)
 
         # Create the interatom.unit_vectors page.
-        page = 
uf_store['interatom.unit_vectors'].create_page(self.dipole_wizard)
+        page = 
uf_store['interatom.unit_vectors'].create_page(self.dipole_wizard, sync=True)
         self.dipole_wizard.add_page(page)
 
         # Reset the cursor.




Related Messages


Powered by MHonArc, Updated Fri Jun 21 12:00:03 2013