Author: bugman Date: Fri May 11 17:01:31 2012 New Revision: 16234 URL: http://svn.gna.org/viewcvs/relax?rev=16234&view=rev Log: Added the spectrum.integration_points user function backend so that the auto-generated class can work. This raises a RelaxImplementError as this is not implemented, but allows the front end to be accessible. Modified: branches/uf_redesign/generic_fns/spectrum.py Modified: branches/uf_redesign/generic_fns/spectrum.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/generic_fns/spectrum.py?rev=16234&r1=16233&r2=16234&view=diff ============================================================================== --- branches/uf_redesign/generic_fns/spectrum.py (original) +++ branches/uf_redesign/generic_fns/spectrum.py Fri May 11 17:01:31 2012 @@ -643,8 +643,11 @@ # Print out. print("Replicated spectra: No.") + # No implemented. + raise RelaxImplementError + # Set the errors. - __errors_repl() + __errors_vol_no_repl() def get_ids(): @@ -660,6 +663,20 @@ # Return the IDs. return cdp.spectrum_ids + + +def integration_points(N=0, spectrum_id=None, spin_id=None): + """Set the number of integration points for the given spectrum. + + @param N: The number of integration points. + @type N: int + @keyword spectrum_id: The spectrum ID string. + @type spectrum_id: str + @keyword spin_id: The spin ID string used to restrict the value to. + @type spin_id: None or str + """ + + raise RelaxImplementError def intensity_generic(file_data=None, spin_id_col=None, mol_name_col=None, res_num_col=None, res_name_col=None, spin_num_col=None, spin_name_col=None, data_col=None, sep=None, spin_id=None):