Author: bugman Date: Wed Sep 24 20:16:55 2008 New Revision: 7276 URL: http://svn.gna.org/viewcvs/relax?rev=7276&view=rev Log: Fixed the identification of multiple data sets in the write() function. Modified: 1.3/generic_fns/grace.py Modified: 1.3/generic_fns/grace.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/grace.py?rev=7276&r1=7275&r2=7276&view=diff ============================================================================== --- 1.3/generic_fns/grace.py (original) +++ 1.3/generic_fns/grace.py Wed Sep 24 20:16:55 2008 @@ -309,11 +309,9 @@ graph_type = determine_graph_type(data, x_data_type=x_data_type, plot_data=plot_data) # Test for multiple data sets. - multi = True - try: - len(data[0][-4]) - except TypeError: - multi = False + multi = False + if type(data[0][-4]) == list: + multi = True # Multiple data sets. if multi: