Author: bugman
Date: Mon Jan 19 15:47:27 2009
New Revision: 8538
URL: http://svn.gna.org/viewcvs/relax?rev=8538&view=rev
Log:
Fix for the ModelList.is_empty() method.
Now if no ModelContainers are in the list, the method returns True.
Modified:
branches/multi_structure/generic_fns/structure/api_base.py
Modified: branches/multi_structure/generic_fns/structure/api_base.py
URL:
http://svn.gna.org/viewcvs/relax/branches/multi_structure/generic_fns/structure/api_base.py?rev=8538&r1=8537&r2=8538&view=diff
==============================================================================
--- branches/multi_structure/generic_fns/structure/api_base.py (original)
+++ branches/multi_structure/generic_fns/structure/api_base.py Mon Jan 19
15:47:27 2009
@@ -766,6 +766,10 @@
@rtype: bool
"""
+ # No ModelContainers.
+ if len(self) == 0:
+ return True
+
# There is only one ModelContainer and it is empty.
if len(self) == 1 and self[0].is_empty():
return True
_______________________________________________
relax (http://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