Author: bugman Date: Tue Jan 15 11:28:58 2008 New Revision: 4723 URL: http://svn.gna.org/viewcvs/relax?rev=4723&view=rev Log: Simplified the model_setup() method. The data_init() call and pipe type checking was unnecessary. 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=4723&r1=4722&r2=4723&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:28:58 2008 @@ -227,14 +227,6 @@ # Alias the current data pipe. cdp = relax_data_store[relax_data_store.current_pipe] - # Test if the pipe type is 'N-state'. - function_type = cdp.pipe_type - if function_type != 'N-state': - raise RelaxFuncSetupError, specific_fns.get_string(function_type) - - # Initialise the data structures (if needed). - self.data_init() - # Set the value of N. cdp.N = N