mailr4530 - /1.3/relax_io.py


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

Header


Content

Posted by edward on January 09, 2008 - 11:46:
Author: bugman
Date: Wed Jan  9 11:46:51 2008
New Revision: 4530

URL: http://svn.gna.org/viewcvs/relax?rev=4530&view=rev
Log:
Updated the relax_io.extract_data() function.

The compression flag has been dropped as it is automatically determined and 
updated the docstring to
epydoc format.


Modified:
    1.3/relax_io.py

Modified: 1.3/relax_io.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/relax_io.py?rev=4530&r1=4529&r2=4530&view=diff
==============================================================================
--- 1.3/relax_io.py (original)
+++ 1.3/relax_io.py Wed Jan  9 11:46:51 2008
@@ -1,6 +1,6 @@
 
###############################################################################
 #                                                                            
 #
-# Copyright (C) 2003-2006 Edward d'Auvergne                                  
 #
+# Copyright (C) 2003-2008 Edward d'Auvergne                                  
 #
 #                                                                            
 #
 # This file is part of the program relax.                                    
 #
 #                                                                            
 #
@@ -58,8 +58,22 @@
 """
 
 
-def extract_data(file_name=None, dir=None, file_data=None, sep=None, 
compress_type=0):
-    """Open the file 'file' and return all the data."""
+def extract_data(file_name=None, dir=None, file_data=None, sep=None):
+    """Open the file 'file' and return all the data.
+
+    @param file_name:       The name of the file to extract the data from.
+    @type file_name:        str
+    @param dir:             The path where the file is located.  If None, 
then the current
+                            directory is assumed.
+    @type dir:              str
+    @param file_data:       If the file data has already been extracted from 
the file, it can be
+                            passed into this function using this argument.  
If data is supplied
+                            here, then the file_name and dir args are 
ignored.
+    @type file_data:        list of str
+    @param sep:             The character separating the columns in the file 
data.  If None, then
+                            whitespace is assumed.
+    @type sep:              str
+    """
 
     # Data not already extracted from the file.
     if not file_data:




Related Messages


Powered by MHonArc, Updated Wed Jan 09 12:00:20 2008