Author: bugman Date: Wed Jul 19 06:05:24 2006 New Revision: 2509 URL: http://svn.gna.org/viewcvs/relax?rev=2509&view=rev Log: Fix to bug #6383. The bug report is located at https://gna.org/bugs/?func=detailitem&item_id=6383. The global flag is now set to the default of 0 for residue specific data on initialisation. Also, the delete function now explicitly sets the global flag. Modified: 1.2/specific_fns/relax_data.py Modified: 1.2/specific_fns/relax_data.py URL: http://svn.gna.org/viewcvs/relax/1.2/specific_fns/relax_data.py?rev=2509&r1=2508&r2=2509&view=diff ============================================================================== --- 1.2/specific_fns/relax_data.py (original) +++ 1.2/specific_fns/relax_data.py Wed Jul 19 06:05:24 2006 @@ -1,6 +1,6 @@ ############################################################################### # # -# Copyright (C) 2003-2005 Edward d'Auvergne # +# Copyright (C) 2003-2006 Edward d'Auvergne # # # # This file is part of the program relax. # # # @@ -30,6 +30,9 @@ self.relax = relax + # Global data flag (default to residue specific data). + self.global_flag = 0 + def add_residue(self, run=None, res_index=None, ri_labels=None, remap_table=None, frq_labels=None, frq=None, values=None, errors=None, sim=0): """Function for adding all relaxation data for a single residue.""" @@ -428,6 +431,9 @@ # Remap the data structure 'self.relax.data.res[self.run][i]'. data = self.relax.data.res[self.run][i] + # Global data flag. + self.global_flag = 0 + # Find the index corresponding to 'self.ri_label' and 'self.frq_label'. index = self.find_index(data)