Author: bugman Date: Thu Jul 16 19:45:33 2009 New Revision: 9248 URL: http://svn.gna.org/viewcvs/relax?rev=9248&view=rev Log: Bug fix for the write_pdb() method. The MODEL record is now created for single structures if a model number exists. Modified: 1.3/generic_fns/structure/internal.py Modified: 1.3/generic_fns/structure/internal.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/structure/internal.py?rev=9248&r1=9247&r2=9248&view=diff ============================================================================== --- 1.3/generic_fns/structure/internal.py (original) +++ 1.3/generic_fns/structure/internal.py Thu Jul 16 19:45:33 2009 @@ -686,8 +686,9 @@ # Determine if model records will be created. model_records = False - if model_num == None and self.num_models() > 1: - model_records = True + for model in self.structural_data: + if hasattr(model, 'num') and model.num != None: + model_records = True ####################