This is related to the error here: http://permalink.gmane.org/gmane.science.nmr.relax.devel/4699
Best Troels 2013/12/10 Troels Emtekær Linnet <[email protected]> > If I change > > > /Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/dateutil/rrule.py > > From > ------- > line 25 > M29, M30, M31 = range(1,30), range(1,31), range(1,32) > line 28 > M29, M30, M31 = range(-29,0), range(-30,0), range(-31,0) > > To > ------ > M29, M30, M31 = list(range(1,30)), list(range(1,31)), list(range(1,32)) > M29, M30, M31 = list(range(-29,0)), list(range(-30,0)), list(range(-31,0)) > > I can now import matplotlib in relax. > > Best > Troels > > > > 2013/12/10 Troels Emtekær Linnet <[email protected]> > >> Hi Edward. >> >> I wonder why range objects in relax by default are created as >> xrange objects? >> >> I think this is related to the error when importing matplotlib. >> from pylab import * >> >> ------- >> relax> M31=range(10) >> relax> type(M31) >> <type 'xrange'> >> relax> print M31[:7] >> Traceback (most recent call last): >> File "<console>", line 1, in <module> >> TypeError: sequence index must be integer, not 'slice' >> ----- >> >> Best >> Troels >> > >
_______________________________________________ relax (http://www.nmr-relax.com) This is the relax-devel mailing list [email protected] To unsubscribe from this list, get a password reminder, or change your subscription options, visit the list information page at https://mail.gna.org/listinfo/relax-devel

