Author: bugman Date: Tue Jan 15 15:38:19 2008 New Revision: 4753 URL: http://svn.gna.org/viewcvs/relax?rev=4753&view=rev Log: The list of N-state model parameters is now created and stored at cdp.params. 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=4753&r1=4752&r2=4753&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 15:38:19 2008 @@ -298,6 +298,19 @@ # Set the value of N. cdp.N = N + # Initialise the list of model parameters. + cdp.params = [] + + # Add the probability parameters. + for i in xrange(N-1): + cdp.params.append('p' + `i`) + + # Add the Euler angle parameters. + for i in xrange(N): + cdp.params.append('alpha' + `i`) + cdp.params.append('beta' + `i`) + cdp.params.append('gamma' + `i`) + def param_num(self): """Function for determining the number of parameters in the model.