Author: bugman
Date: Thu Feb  5 17:47:03 2015
New Revision: 27555

URL: http://svn.gna.org/viewcvs/relax?rev=27555&view=rev
Log:
Fix for the specific analysis API _print_model_title_global() common method.

This method was horribly broken, as it was never used.  The new 
statistics.model user function
together with the N-state model uncovers this breakage.


Modified:
    trunk/specific_analyses/api_common.py

Modified: trunk/specific_analyses/api_common.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/api_common.py?rev=27555&r1=27554&r2=27555&view=diff
==============================================================================
--- trunk/specific_analyses/api_common.py       (original)
+++ trunk/specific_analyses/api_common.py       Thu Feb  5 17:47:03 2015
@@ -313,8 +313,13 @@
         @type model_info:       int
         """
 
-        # Strip out the text from the colon.
-        text = prefix.split(':')[0]
+        # Create the text from the prefix and model info.
+        text = ''
+        if prefix:
+            text += prefix
+        else:
+            text += 'Model '
+        text += repr(model_info)
 
         # The printout.
         subsection(file=sys.stdout, text=text, prespace=2)


_______________________________________________
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

Reply via email to