mailr16692 - /branches/uf_redesign/data/exp_info.py


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

Header


Content

Posted by edward on June 06, 2012 - 14:47:
Author: bugman
Date: Wed Jun  6 14:47:10 2012
New Revision: 16692

URL: http://svn.gna.org/viewcvs/relax?rev=16692&view=rev
Log:
Fix for the experimental information in the relax data store - the 
information can now be reset.


Modified:
    branches/uf_redesign/data/exp_info.py

Modified: branches/uf_redesign/data/exp_info.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/data/exp_info.py?rev=16692&r1=16691&r2=16692&view=diff
==============================================================================
--- branches/uf_redesign/data/exp_info.py (original)
+++ branches/uf_redesign/data/exp_info.py Wed Jun  6 14:47:10 2012
@@ -149,10 +149,6 @@
         if not hasattr(self, "peak_intensity_type"):
             self.peak_intensity_type = {}
 
-        # Find if the type has already been set.
-        if ri_id in self.peak_intensity_type.keys():
-            raise RelaxError("The peak intensity type for the '%s' 
relaxation data ID string has already been set.")
-
         # Set the type.
         self.peak_intensity_type[ri_id] = type
 
@@ -163,10 +159,6 @@
         @param state:   The thiol state of the molecule.
         @type state:    str
         """
-
-        # Check.
-        if hasattr(self, "thiol_state"):
-            raise RelaxError("The thiol state has already been specified")
 
         # Set the attribute.
         self.thiol_state = state
@@ -292,10 +284,6 @@
         if not hasattr(self, "temp_calibration"):
             self.temp_calibration = {}
 
-        # Find if the method has already been set.
-        if ri_id in self.temp_calibration.keys():
-            raise RelaxError("The temperature calibration method for the 
'%s' relaxation data ID string has already been set.")
-
         # Set the method.
         self.temp_calibration[ri_id] = method
 
@@ -313,9 +301,5 @@
         if not hasattr(self, "temp_control"):
             self.temp_control = {}
 
-        # Find if the method has already been set.
-        if ri_id in self.temp_control.keys():
-            raise RelaxError("The temperature control method for the '%s' 
relaxation data ID string has already been set.")
-
         # Set the method.
         self.temp_control[ri_id] = method




Related Messages


Powered by MHonArc, Updated Wed Jun 06 15:00:02 2012