mailr13647 - /branches/gui_testing/generic_fns/spectrum.py


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

Header


Content

Posted by edward on July 15, 2011 - 13:37:
Author: bugman
Date: Fri Jul 15 13:37:22 2011
New Revision: 13647

URL: http://svn.gna.org/viewcvs/relax?rev=13647&view=rev
Log:
Deleted the __check_args() function from generic_fns.spectrum.

This is not needed and fails when using the GUI.


Modified:
    branches/gui_testing/generic_fns/spectrum.py

Modified: branches/gui_testing/generic_fns/spectrum.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/generic_fns/spectrum.py?rev=13647&r1=13646&r2=13647&view=diff
==============================================================================
--- branches/gui_testing/generic_fns/spectrum.py (original)
+++ branches/gui_testing/generic_fns/spectrum.py Fri Jul 15 13:37:22 2011
@@ -262,60 +262,6 @@
 
         # close the file
         file.close()
-
-
-
-def __check_args(spin_id_col=None, mol_name_col=None, res_num_col=None, 
res_name_col=None, spin_num_col=None, spin_name_col=None, sep=None, 
spin_id=None):
-    """Check that the arguments have not been set.
-
-    @keyword spin_id_col:   The column containing the spin ID strings (used 
by the generic intensity
-                            file format).  If supplied, the mol_name_col, 
res_name_col, res_num_col,
-                            spin_name_col, and spin_num_col arguments must 
be none.
-    @type spin_id_col:      int or None
-    @keyword mol_name_col:  The column containing the molecule name 
information (used by the generic
-                            intensity file format).  If supplied, 
spin_id_col must be None.
-    @type mol_name_col:     int or None
-    @keyword res_name_col:  The column containing the residue name 
information (used by the generic
-                            intensity file format).  If supplied, 
spin_id_col must be None.
-    @type res_name_col:     int or None
-    @keyword res_num_col:   The column containing the residue number 
information (used by the
-                            generic intensity file format).  If supplied, 
spin_id_col must be None.
-    @type res_num_col:      int or None
-    @keyword spin_name_col: The column containing the spin name information 
(used by the generic
-                            intensity file format).  If supplied, 
spin_id_col must be None.
-    @type spin_name_col:    int or None
-    @keyword spin_num_col:  The column containing the spin number 
information (used by the generic
-                            intensity file format).  If supplied, 
spin_id_col must be None.
-    @type spin_num_col:     int or None
-    @keyword sep:           The column separator which, if None, defaults to 
whitespace.
-    @type sep:              str or None
-    @keyword spin_id:       The spin ID string used to restrict data loading 
to a subset of all
-                            spins.
-    @type spin_id:          None or str
-    """
-
-    # Args and names.
-    args = [spin_id_col,
-            mol_name_col,
-            res_num_col,
-            res_name_col,
-            spin_num_col,
-            spin_name_col,
-            sep,
-            spin_id]
-    names = ['spin_id_col',
-             'mol_name_col',
-             'res_num_col',
-             'res_name_col',
-             'spin_num_col',
-             'spin_name_col',
-             'sep',
-             'spin_id']
-
-    # Check the arguments are None.
-    for i in range(len(args)):
-        if args[i] != None:
-            raise RelaxArgNotNoneError(names[i], args[i])
 
 
 def __errors_height_no_repl():
@@ -1070,9 +1016,6 @@
         # Print out.
         print("Sparky formatted data file.\n")
 
-        # Check that certain args have not been set:
-        __check_args(spin_id_col=spin_id_col, mol_name_col=mol_name_col, 
res_num_col=res_num_col, res_name_col=res_name_col, 
spin_num_col=spin_num_col, spin_name_col=spin_name_col, sep=sep, 
spin_id=spin_id)
-
         # Extract the data.
         intensity_data = intensity_sparky(file_data=file_data, 
int_col=int_col)
 
@@ -1080,9 +1023,6 @@
     elif format == 'xeasy':
         # Print out.
         print("XEasy formatted data file.\n")
-
-        # Check that certain args have not been set:
-        __check_args(spin_id_col=spin_id_col, mol_name_col=mol_name_col, 
res_num_col=res_num_col, res_name_col=res_name_col, 
spin_num_col=spin_num_col, spin_name_col=spin_name_col, sep=sep, 
spin_id=spin_id)
 
         # Extract the data.
         intensity_data = intensity_xeasy(file_data=file_data, proton=proton, 
heteronuc=heteronuc, int_col=int_col)




Related Messages


Powered by MHonArc, Updated Fri Jul 15 14:00:02 2011