mailRe: r22469 - /trunk/specific_analyses/relax_disp/disp_data.py


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

Header


Content

Posted by Edward d'Auvergne on March 12, 2014 - 17:47:
Hi Troels,

The returned values should actually be the tuple "(None, None, None,
None)" rather than the list of 4 None values.  However with the return
statement, you do not need the brackets.  Therefore all you need is
"return None, None, None, None".  This is the standard way of
returning multiple items.

Regards,

Edward



On 12 March 2014 16:14,  <tlinnet@xxxxxxxxxxxxx> wrote:
Author: tlinnet
Date: Wed Mar 12 16:14:25 2014
New Revision: 22469

URL: http://svn.gna.org/viewcvs/relax?rev=22469&view=rev
Log:
Added return of None values for function calc_rotating_frame_params() if 
spin is not selected.

Regarding sr #3124, (https://gna.org/support/index.php?3124) - Grace graphs 
production for R1rho analysis with R2_eff as function of Omega_eff.

Modified:
    trunk/specific_analyses/relax_disp/disp_data.py

Modified: trunk/specific_analyses/relax_disp/disp_data.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/relax_disp/disp_data.py?rev=22469&r1=22468&r2=22469&view=diff
==============================================================================
--- trunk/specific_analyses/relax_disp/disp_data.py     (original)
+++ trunk/specific_analyses/relax_disp/disp_data.py     Wed Mar 12 16:14:25 
2014
@@ -178,6 +178,11 @@
     @return:            List with dict() of theta, Domega, w_eff and list 
of dict() keys.
     @rtype:             List of dict()
     """
+
+    # If the spin is not selected, return None
+    if not spin.select:
+        return [None, None, None, None]
+
     # Get the field count
     field_count = count_frq()



_______________________________________________
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



Related Messages


Powered by MHonArc, Updated Wed Mar 12 18:00:14 2014