mailr9726 - /branches/bmrb/generic_fns/exp_info.py


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

Header


Content

Posted by edward on October 11, 2009 - 16:39:
Author: bugman
Date: Sun Oct 11 16:39:43 2009
New Revision: 9726

URL: http://svn.gna.org/viewcvs/relax?rev=9726&view=rev
Log:
Created the bmrb_write_software() function for dumping the software info into 
the BMRB file.


Modified:
    branches/bmrb/generic_fns/exp_info.py

Modified: branches/bmrb/generic_fns/exp_info.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bmrb/generic_fns/exp_info.py?rev=9726&r1=9725&r2=9726&view=diff
==============================================================================
--- branches/bmrb/generic_fns/exp_info.py (original)
+++ branches/bmrb/generic_fns/exp_info.py Sun Oct 11 16:39:43 2009
@@ -26,6 +26,19 @@
 # relax module imports.
 from data.exp_info import ExpInfo
 from relax_errors import RelaxError
+
+
+def bmrb_write_software(star):
+    """Generate the Software saveframe records.
+
+    @param star:        The NMR-STAR dictionary object.
+    @type star:         NMR_STAR instance
+    """
+
+    # Loop over the software.
+    for software in cdp.exp_info.software:
+        # The relax info.
+        star.software.add(name=software.name, version=software.version, 
vendor_name=software.vendor_name, vendor_eaddress=software.url, 
task=software.tasks)
 
 
 def software(name=None, version=None, url=None, vendor_name=None, cite=None, 
tasks=None):




Related Messages


Powered by MHonArc, Updated Sun Oct 11 17:00:03 2009