Author: bugman Date: Thu Apr 10 18:36:32 2014 New Revision: 22696 URL: http://svn.gna.org/viewcvs/relax?rev=22696&view=rev Log: Eliminated the last of the specific analysis API return_units() methods. This functionality is now provided by the parameter list object. Modified: trunk/specific_analyses/n_state_model/api.py trunk/specific_analyses/noe/api.py trunk/specific_analyses/relax_fit/api.py Modified: trunk/specific_analyses/n_state_model/api.py URL: http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/n_state_model/api.py?rev=22696&r1=22695&r2=22696&view=diff ============================================================================== --- trunk/specific_analyses/n_state_model/api.py (original) +++ trunk/specific_analyses/n_state_model/api.py Thu Apr 10 18:36:32 2014 @@ -803,24 +803,6 @@ return "Back-calculated RDC" - def return_units(self, param): - """Return a string representing the parameters units. - - @param param: The name of the parameter to return the units string for. - @type param: str - @return: The parameter units string. - @rtype: str - """ - - # PCSs. - if param == 'pcs' or param == 'pcs_bc': - return 'ppm' - - # RDCs. - if param == 'rdc' or param == 'rdc_bc': - return 'Hz' - - def set_error(self, model_info, index, error): """Set the parameter errors. Modified: trunk/specific_analyses/noe/api.py URL: http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/noe/api.py?rev=22696&r1=22695&r2=22696&view=diff ============================================================================== --- trunk/specific_analyses/noe/api.py (original) +++ trunk/specific_analyses/noe/api.py Thu Apr 10 18:36:32 2014 @@ -183,15 +183,3 @@ # Catch complete failures - i.e. no spins are selected. if all_desel: raise RelaxError("All spins have been deselected.") - - - def return_units(self, param): - """Dummy function which returns None as the stats have no units. - - @param param: The name of the parameter to return the units string for. - @type param: str - @return: Nothing. - @rtype: None - """ - - return None Modified: trunk/specific_analyses/relax_fit/api.py URL: http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/relax_fit/api.py?rev=22696&r1=22695&r2=22696&view=diff ============================================================================== --- trunk/specific_analyses/relax_fit/api.py (original) +++ trunk/specific_analyses/relax_fit/api.py Thu Apr 10 18:36:32 2014 @@ -436,19 +436,6 @@ return spin.peak_intensity_err - def return_units(self, param): - """Dummy method which returns None as the stats have no units. - - @param param: The name of the parameter to return the units string for. - @type param: str - @return: Nothing. - @rtype: None - """ - - # Unitless. - return None - - def sim_pack_data(self, data_id, sim_data): """Pack the Monte Carlo simulation data.