Author: bugman Date: Mon Oct 8 19:15:40 2012 New Revision: 17761 URL: http://svn.gna.org/viewcvs/relax?rev=17761&view=rev Log: Fix for the XML output of the diffusion tensor - only the modifiable parameters are output. This was the previous behaviour and is needed for the test suite to pass. Modified: branches/tensor_data/data/diff_tensor.py Modified: branches/tensor_data/data/diff_tensor.py URL: http://svn.gna.org/viewcvs/relax/branches/tensor_data/data/diff_tensor.py?rev=17761&r1=17760&r2=17761&view=diff ============================================================================== --- branches/tensor_data/data/diff_tensor.py (original) +++ branches/tensor_data/data/diff_tensor.py Mon Oct 8 19:15:40 2012 @@ -1115,8 +1115,14 @@ tensor_element.setAttribute('desc', 'Diffusion tensor') tensor_element.setAttribute('type', self.type) + # The blacklist. + blacklist = ['type', 'is_empty'] + list(self.__class__.__dict__.keys()) + for name in dir(self): + if name not in self._mod_attr: + blacklist.append(name) + # Add all simple python objects within the PipeContainer to the pipe element. - fill_object_contents(doc, tensor_element, object=self, blacklist=['type', 'is_empty'] + list(self.__class__.__dict__.keys())) + fill_object_contents(doc, tensor_element, object=self, blacklist=blacklist)