Author: bugman Date: Tue Feb 5 09:51:13 2013 New Revision: 18420 URL: http://svn.gna.org/viewcvs/relax?rev=18420&view=rev Log: Bug fix for the diffusion tensor PDB creation in the dauvergne_protocol model-free auto-analysis. The call to the structure.create_diff_tensor_pdb user function now only occurs if structural data is present. Modified: trunk/auto_analyses/dauvergne_protocol.py Modified: trunk/auto_analyses/dauvergne_protocol.py URL: http://svn.gna.org/viewcvs/relax/trunk/auto_analyses/dauvergne_protocol.py?rev=18420&r1=18419&r2=18420&view=diff ============================================================================== --- trunk/auto_analyses/dauvergne_protocol.py (original) +++ trunk/auto_analyses/dauvergne_protocol.py Tue Feb 5 09:51:13 2013 @@ -931,9 +931,10 @@ self.interpreter.molmol.macro_write(data_type='time_slow', dir=dir, force=True) self.interpreter.molmol.macro_write(data_type='rex', dir=dir, force=True) - # Create a diffusion tensor representation of the tensor. - dir = self.results_dir + 'final' - self.interpreter.structure.create_diff_tensor_pdb(file="tensor.pdb", dir=dir, force=True) + # Create a diffusion tensor representation of the tensor, if a PDB file is present. + if hasattr(cdp, 'structure'): + dir = self.results_dir + 'final' + self.interpreter.structure.create_diff_tensor_pdb(file="tensor.pdb", dir=dir, force=True)