Author: bugman Date: Sat Sep 1 11:27:10 2012 New Revision: 17416 URL: http://svn.gna.org/viewcvs/relax?rev=17416&view=rev Log: Fix for bug #20120 (https://gna.org/bugs/?20120), the bad Grace plots with multiple spin types. The grace data assembly function was not setting the correct index for when a spin type changes to a preexisting type. Modified: trunk/generic_fns/grace.py Modified: trunk/generic_fns/grace.py URL: http://svn.gna.org/viewcvs/relax/trunk/generic_fns/grace.py?rev=17416&r1=17415&r2=17416&view=diff ============================================================================== --- trunk/generic_fns/grace.py (original) +++ trunk/generic_fns/grace.py Sat Sep 1 11:27:10 2012 @@ -223,6 +223,10 @@ # The set index. index = i * len(spin_names) + spin_names.index(spin.name) + + # Existing spin type, so change the index to match the correct data category (fix for bug #20120, https://gna.org/bugs/?20120). + else: + index = spin_names.index(spin.name) # Loop over the points. for j in range(len(x_val)):