mailr6129 - /1.3/generic_fns/selection.py


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

Header


Content

Posted by edward on May 07, 2008 - 16:58:
Author: bugman
Date: Wed May  7 16:58:52 2008
New Revision: 6129

URL: http://svn.gna.org/viewcvs/relax?rev=6129&view=rev
Log:
The desel_read() fn now uses RelaxNoSpinWarning.


Modified:
    1.3/generic_fns/selection.py

Modified: 1.3/generic_fns/selection.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/selection.py?rev=6129&r1=6128&r2=6129&view=diff
==============================================================================
--- 1.3/generic_fns/selection.py (original)
+++ 1.3/generic_fns/selection.py Wed May  7 16:58:52 2008
@@ -20,11 +20,15 @@
 #                                                                            
 #
 
###############################################################################
 
+# Python module imports
+from warnings import warn
+
 # relax module imports.
 from data import Data as relax_data_store
 from generic_fns.mol_res_spin import exists_mol_res_spin_data, 
generate_spin_id_data_array, return_spin, spin_loop
-from relax_errors import RelaxError, RelaxNoPipeError, RelaxNoSequenceError, 
RelaxNoSpinError
+from relax_errors import RelaxError, RelaxNoPipeError, RelaxNoSequenceError
 from relax_io import extract_data, strip
+from relax_warnings import RelaxNoSpinWarning
 
 
 def desel_all():
@@ -120,7 +124,7 @@
         # Get the corresponding spin container.
         spin = return_spin(id)
         if spin == None:
-            raise RelaxNoSpinError, id
+            warn(RelaxNoSpinWarning(id))
 
         # Deselect the spin.
         spin.select = 0




Related Messages


Powered by MHonArc, Updated Wed May 07 17:20:12 2008