Author: bugman Date: Fri Nov 21 09:54:55 2008 New Revision: 7998 URL: http://svn.gna.org/viewcvs/relax?rev=7998&view=rev Log: Renamed spectrum_type to spectrum_id in the NOE set_error() method. This method may have to remain for the Monte Carlo simulations? Modified: branches/spectral_errors/specific_fns/noe.py Modified: branches/spectral_errors/specific_fns/noe.py URL: http://svn.gna.org/viewcvs/relax/branches/spectral_errors/specific_fns/noe.py?rev=7998&r1=7997&r2=7998&view=diff ============================================================================== --- branches/spectral_errors/specific_fns/noe.py (original) +++ branches/spectral_errors/specific_fns/noe.py Fri Nov 21 09:54:55 2008 @@ -198,14 +198,14 @@ return None - def set_error(self, error=0.0, spectrum_type=None, spin_id=None): + def set_error(self, error=0.0, spectrum_id=None, spin_id=None): """Set the peak intensity errors. @param error: The peak intensity error value defined as the RMSD of the base plane noise. @type error: float - @keyword spectrum_type: The type of spectrum, one of 'ref' or 'sat'. - @type spectrum_type: str + @keyword spectrum_id: The id of spectrum, one of 'ref' or 'sat'. + @type spectrum_id: str @param spin_id: The spin identification string. @type spin_id: str """ @@ -224,7 +224,7 @@ continue # Set the error. - if spectrum_type == 'ref': + if spectrum_id == 'ref': spin.ref_err = float(error) - elif spectrum_type == 'sat': + elif spectrum_id == 'sat': spin.sat_err = float(error)