Author: bugman
Date: Mon Dec 8 17:57:43 2014
New Revision: 27024
URL: http://svn.gna.org/viewcvs/relax?rev=27024&view=rev
Log:
More improvements for the data_store.nmrglue.Nmrglue __repr__() method.
The printed representation now only shows the data, dic, and udic objects.
Modified:
branches/nmrglue/data_store/nmrglue.py
Modified: branches/nmrglue/data_store/nmrglue.py
URL:
http://svn.gna.org/viewcvs/relax/branches/nmrglue/data_store/nmrglue.py?rev=27024&r1=27023&r2=27024&view=diff
==============================================================================
--- branches/nmrglue/data_store/nmrglue.py (original)
+++ branches/nmrglue/data_store/nmrglue.py Mon Dec 8 17:57:43 2014
@@ -36,10 +36,8 @@
"""Container for the global GUI data structures."""
def __repr__(self):
- # Header.
- text = "\n%-25s%-100s\n\n" % ("Data structure", "Value")
-
# Data structures.
+ text = "\n"
for name in dir(self):
# Skip Nmrglue and derived class methods.
if name in Element.__dict__ or name in Nmrglue.__dict__ or name in
self.__class__.__dict__:
@@ -52,10 +50,14 @@
# Get the object.
obj = getattr(self, name)
- # The data.
+ # The objects to add.
if name == 'data':
name = "data.shape"
obj = obj.shape
+ elif name in ['dic', 'udic']:
+ pass
+ else:
+ continue
# Generate the text.
text = text + "%-25s %-100s\n" % (name, repr(obj))
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits 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-commits