Author: bugman Date: Wed Jul 9 18:33:20 2008 New Revision: 6907 URL: http://svn.gna.org/viewcvs/relax?rev=6907&view=rev Log: Modified the __update_model() method to create empty alignment tensors as necessary. This is for the RDC based analysis were the tensors are optimised. 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=6907&r1=6906&r2=6907&view=diff ============================================================================== --- branches/rdc_analysis/specific_fns/n_state_model.py (original) +++ branches/rdc_analysis/specific_fns/n_state_model.py Wed Jul 9 18:33:20 2008 @@ -92,6 +92,15 @@ cdp.beta = [None] * cdp.N if not hasattr(cdp, 'gamma'): cdp.gamma = [None] * cdp.N + + # Determine the data type. + data_type = self.__determine_data_type() + + # Set up alignment tensors for each alignment. + if data_type == 'rdc' and not hasattr(cdp, 'align_tensors'): + # Loop over the alignments. + for align in cdp.rdc_ids: + generic_fns.align_tensor.init(tensor=align, params=[0.0, 0.0, 0.0, 0.0, 0.0]) def __determine_data_type(self):