Author: semor Date: Thu Mar 12 18:17:30 2009 New Revision: 8974 URL: http://svn.gna.org/viewcvs/relax?rev=8974&view=rev Log: Fix for bug 13162: Rex values in XML results file not in s-1. The units are now correctly given in the XML results fiel as discussed in a thread at: https://mail.gna.org/public/relax-devel/2009-03/msg00010.html (Message-id: <20090310-141629.sv7147.79009@xxxxxxx>) Modified: 1.3/specific_fns/model_free/main.py Modified: 1.3/specific_fns/model_free/main.py URL: http://svn.gna.org/viewcvs/relax/1.3/specific_fns/model_free/main.py?rev=8974&r1=8973&r2=8974&view=diff ============================================================================== --- 1.3/specific_fns/model_free/main.py (original) +++ 1.3/specific_fns/model_free/main.py Thu Mar 12 18:17:30 2009 @@ -2370,25 +2370,25 @@ if not spin: spin = return_spin(spin_id) - # tm (nanoseconds). + # tm (seconds). if object_name == 'tm' or object_name == 'local_tm': - return 'ns' - - # te, tf, and ts (picoseconds). + return 's' + + # te, tf, and ts (seconds). elif object_name in ['te', 'tf', 'ts']: - return 'ps' - - # Rex (value at 1st field strength). + return 's' + + # Rex (field independant value). elif object_name == 'rex' and hasattr(spin, 'frq_labels') and spin.frq_labels != None and len(spin.frq_labels): - return spin.frq_labels[0] + ' MHz' - - # Bond length (Angstrom). + return 'sigma_ex = Rex / omega**2' + + # Bond length (meters). elif object_name == 'r': - return 'Angstrom' - - # CSA (ppm). + return 'm' + + # CSA (unitless). elif object_name == 'csa': - return 'ppm' + return 'unitless' def select_model(self, model=None, spin_id=None):