Hi Troels, You will need to remove the Python 3 fatal printout from this commit. Cheers, Edward On 29 April 2014 19:56, <tlinnet@xxxxxxxxxxxxx> wrote:
Author: tlinnet Date: Tue Apr 29 19:56:08 2014 New Revision: 22882 URL: http://svn.gna.org/viewcvs/relax?rev=22882&view=rev Log: Fix for setting the pre-set values in grid_search. Feature request: #3151, (https://gna.org/support/index.php?3151) - User function to set the R20 parameters in the default grid search using the minimum R2eff value. Now test that values which are of dict types, has more than 0 values. Modified: trunk/specific_analyses/relax_disp/optimisation.py Modified: trunk/specific_analyses/relax_disp/optimisation.py URL: http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/relax_disp/optimisation.py?rev=22882&r1=22881&r2=22882&view=diff ============================================================================== --- trunk/specific_analyses/relax_disp/optimisation.py (original) +++ trunk/specific_analyses/relax_disp/optimisation.py Tue Apr 29 19:56:08 2014 @@ -396,7 +396,8 @@ upper[param_index] = val # Test if the value is a dict, for example for r2. - if isinstance(val, dict): + if isinstance(val, dict) and len(val) > 0: + print val # Test if r20_key exists. if r20_key != None: try: _______________________________________________ relax (http://www.nmr-relax.com) This is the relax-commits mailing list relax-commits@xxxxxxx 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