Author: bugman Date: Sun Oct 5 14:37:31 2008 New Revision: 7513 URL: http://svn.gna.org/viewcvs/relax?rev=7513&view=rev Log: Added a fix for the aliasing of a PDB file for when no structural data exists in the data pipe. This is related to bug #12409 (https://gna.org/bugs/index.php?12409), so that rather than an unrelated RelaxError, the structure is not aliased is the structural data could not be loaded in another data pipe. Modified: 1.3/generic_fns/structure/scientific.py Modified: 1.3/generic_fns/structure/scientific.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/structure/scientific.py?rev=7513&r1=7512&r2=7513&view=diff ============================================================================== --- 1.3/generic_fns/structure/scientific.py (original) +++ 1.3/generic_fns/structure/scientific.py Sun Oct 5 14:37:31 2008 @@ -564,7 +564,7 @@ if hasattr(data_pipe, 'structure'): # Loop over the structures. for i in xrange(data_pipe.structure.num): - if data_pipe.structure.name[i] == name and data_pipe.structure.id == 'scientific': + if data_pipe.structure.name[i] == name and data_pipe.structure.id == 'scientific' and len(data_pipe.structure.structural_data): # Add the structure. self.add_struct(name=name, model=model, file=file, path=path, str=data_pipe.structure.structural_data[i], struct_index=struct_index)