mailRe: r8329 - /branches/relax_disp/specific_fns/relax_disp.py


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

Header


Content

Posted by Edward d'Auvergne on January 08, 2009 - 11:00:
Hi,

This is a good idea as you will have to use both cdp.frq and
cdp.cpmg_frqs.  Maybe it would be an idea to store this as angular
frequency omega in rad/s rather than plain frequency nu in Hz?

Regards,

Edward


On Thu, Jan 8, 2009 at 12:23 AM,  <sebastien.morin.1@xxxxxxxxx> wrote:
Author: semor
Date: Thu Jan  8 00:23:28 2009
New Revision: 8329

URL: http://svn.gna.org/viewcvs/relax?rev=8329&view=rev
Log:
Renamed 'cdp.frq' to 'cdp.cpmg_frqs' so it is not confusing with the 
spectrometer frequency.

Indeed, 'cdp.cpmg_frqs' points to the CPMG pulse train frequency (nu_cpmg).


Modified:
   branches/relax_disp/specific_fns/relax_disp.py

Modified: branches/relax_disp/specific_fns/relax_disp.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/specific_fns/relax_disp.py?rev=8329&r1=8328&r2=8329&view=diff
==============================================================================
--- branches/relax_disp/specific_fns/relax_disp.py (original)
+++ branches/relax_disp/specific_fns/relax_disp.py Thu Jan  8 00:23:28 2009
@@ -191,18 +191,18 @@
        index = cdp.spectrum_ids.index(spectrum_id)

        # Initialise the global CPMG frequency data structure if needed.
-        if not hasattr(cdp, 'frq'):
-            cdp.frq = [None] * len(cdp.spectrum_ids)
+        if not hasattr(cdp, 'cpmg_frqs'):
+            cdp.cpmg_frqs = [None] * len(cdp.spectrum_ids)

       # Index not present in the global CPMG frequency data structure.
       while 1:
-           if index > len(cdp.frq) - 1:
-               cdp.frq.append(None)
+           if index > len(cdp.cpmg_frqs) - 1:
+               cdp.cpmg_frqs.append(None)
           else:
               break

        # Add the frequency at the correct position.
-        cdp.frq[index] = frq
+        cdp.cpmg_frqs[index] = frq


    def create_mc_data(self, spin_id):


_______________________________________________
relax (http://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 Thu Jan 08 17:40:14 2009