Author: bugman Date: Tue Nov 23 11:29:15 2010 New Revision: 11694 URL: http://svn.gna.org/viewcvs/relax?rev=11694&view=rev Log: Merged revisions 11688 via svnmerge from svn+ssh://bugman@xxxxxxxxxxx/svn/relax/1.3 ........ r11688 | bugman | 2010-11-19 14:46:34 +0100 (Fri, 19 Nov 2010) | 3 lines Improved the diffusion tensor print out. ........ Modified: branches/bieri_gui/ (props changed) branches/bieri_gui/data/data_classes.py Propchange: branches/bieri_gui/ ------------------------------------------------------------------------------ --- svnmerge-integrated (original) +++ svnmerge-integrated Tue Nov 23 11:29:15 2010 @@ -1,1 +1,1 @@ -/1.3:1-11686 +/1.3:1-11693 Modified: branches/bieri_gui/data/data_classes.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/data/data_classes.py?rev=11694&r1=11693&r2=11694&view=diff ============================================================================== --- branches/bieri_gui/data/data_classes.py (original) +++ branches/bieri_gui/data/data_classes.py Tue Nov 23 11:29:15 2010 @@ -25,6 +25,7 @@ # Python module imports. from re import search +from numpy import ndarray from types import ListType # relax module imports. @@ -68,8 +69,17 @@ if search("^_", name): continue + # Get the object. + obj = getattr(self, name) + + # Numpy matrices. + if isinstance(obj, ndarray) and isinstance(obj[0], ndarray): + spacer = '\n' + else: + spacer = '' + # Generate the text. - text = text + "%-25s%-100s\n" % (name, repr(getattr(self, name))) + text = text + "%-25s%s%-100s\n" % (name, spacer, repr(obj)) # Return the lot. return text