Author: bugman
Date: Sun Oct  1 05:54:27 2006
New Revision: 2592

URL: http://svn.gna.org/viewcvs/relax?rev=2592&view=rev
Log:
Fix for bug #7226 (https://gna.org/bugs/?7226).

This bug was reported by Alex Hansen.  The problem was caused by the model-free 
results file reading
function, specifically for model m0.  The parameter array for this model is the 
empty array '[]'.
However the test for setting up the model-free models was being bypassed 
because the empty array
evaluates to False.  By removing the test for the parameter array and only 
checking for the model
name and equation type, the bug is removed.


Modified:
    1.2/specific_fns/model_free.py

Modified: 1.2/specific_fns/model_free.py
URL: 
http://svn.gna.org/viewcvs/relax/1.2/specific_fns/model_free.py?rev=2592&r1=2591&r2=2592&view=diff
==============================================================================
--- 1.2/specific_fns/model_free.py (original)
+++ 1.2/specific_fns/model_free.py Sun Oct  1 05:54:27 2006
@@ -2927,7 +2927,7 @@
             model = self.file_line[self.col['model']]
             equation = self.file_line[self.col['eqi']]
             params = eval(self.file_line[self.col['params']])
-            if model and equation and params:
+            if model and equation:
                 self.model_setup(self.run, model=model, equation=equation, 
params=params, res_num=self.res_num)
 
         # Values.


_______________________________________________
relax (http://nmr-relax.com)

This is the relax-commits mailing list
relax-commits@gna.org

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

Reply via email to