Author: bugman Date: Tue Jan 15 11:36:25 2008 New Revision: 4726 URL: http://svn.gna.org/viewcvs/relax?rev=4726&view=rev Log: Wrote the param_num() method. Modified: branches/N_state_model/specific_fns/n_state_model.py Modified: branches/N_state_model/specific_fns/n_state_model.py URL: http://svn.gna.org/viewcvs/relax/branches/N_state_model/specific_fns/n_state_model.py?rev=4726&r1=4725&r2=4726&view=diff ============================================================================== --- branches/N_state_model/specific_fns/n_state_model.py (original) +++ branches/N_state_model/specific_fns/n_state_model.py Tue Jan 15 11:36:25 2008 @@ -230,6 +230,20 @@ cdp.N = N + def param_num(self): + """Function for determining the number of parameters in the model. + + @return: The number of model parameters. + @rtype: int + """ + + # Alias the current data pipe. + cdp = relax_data_store[relax_data_store.current_pipe] + + # Return the param number. + return (cdp.N - 1) + cdp.N*3 + + def return_data_name(self, name): """ N-state model data type string matching patterns