Author: bugman Date: Tue Aug 12 14:53:24 2008 New Revision: 7178 URL: http://svn.gna.org/viewcvs/relax?rev=7178&view=rev Log: Added a test to __disassemble_param_vector() to set if the model has been selected. Modified: branches/rdc_analysis/specific_fns/n_state_model.py Modified: branches/rdc_analysis/specific_fns/n_state_model.py URL: http://svn.gna.org/viewcvs/relax/branches/rdc_analysis/specific_fns/n_state_model.py?rev=7178&r1=7177&r2=7178&view=diff ============================================================================== --- branches/rdc_analysis/specific_fns/n_state_model.py (original) +++ branches/rdc_analysis/specific_fns/n_state_model.py Tue Aug 12 14:53:24 2008 @@ -67,7 +67,7 @@ # Test if the model is selected. if not hasattr(cdp, 'model') or type(cdp.model) != str: raise RelaxNoModelError - + # Determine the data type. data_types = self.__base_data_types() @@ -213,6 +213,10 @@ # Alias the current data pipe. cdp = ds[ds.current_pipe] + + # Test if the model is selected. + if not hasattr(cdp, 'model') or type(cdp.model) != str: + raise RelaxNoModelError # Unpack and strip off the alignment tensor parameters. if 'rdc' in data_types or 'pcs' in data_types: