Author: bugman
Date: Tue May 8 18:46:40 2012
New Revision: 16116
URL: http://svn.gna.org/viewcvs/relax?rev=16116&view=rev
Log:
The generic_fns.grace.get_data_types() function is even more fail proof.
The return_data_desc() call was sometimes raising a RelaxError when not
implemented for certain
analyses.
Modified:
branches/uf_redesign/generic_fns/grace.py
Modified: branches/uf_redesign/generic_fns/grace.py
URL:
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/generic_fns/grace.py?rev=16116&r1=16115&r2=16116&view=diff
==============================================================================
--- branches/uf_redesign/generic_fns/grace.py (original)
+++ branches/uf_redesign/generic_fns/grace.py Tue May 8 18:46:40 2012
@@ -306,7 +306,10 @@
# Loop over the parameters.
for name in (data_names(set='params') + data_names(set='generic')):
# Get the description.
- desc = return_data_desc(name)
+ try:
+ desc = return_data_desc(name)
+ except:
+ return []
# No description.
if not desc:
_______________________________________________
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