Author: bugman
Date: Thu Feb 5 18:38:43 2015
New Revision: 27560
URL: http://svn.gna.org/viewcvs/relax?rev=27560&view=rev
Log:
Expanded the printouts from the statistics.model user function to include the
statistics.
Modified:
trunk/pipe_control/statistics.py
Modified: trunk/pipe_control/statistics.py
URL:
http://svn.gna.org/viewcvs/relax/trunk/pipe_control/statistics.py?rev=27560&r1=27559&r2=27560&view=diff
==============================================================================
--- trunk/pipe_control/statistics.py (original)
+++ trunk/pipe_control/statistics.py Thu Feb 5 18:38:43 2015
@@ -22,7 +22,11 @@
# Module docstring.
"""Module for handling statistics."""
+# Python module imports.
+import sys
+
# relax module imports.
+from lib.io import write_data
from pipe_control.pipes import check_pipe
from specific_analyses.api import return_api
@@ -43,7 +47,7 @@
# Loop over the base models.
print("\nStoring the model statistics.")
for model_info in api.model_loop():
- # Printout.
+ # Title printout.
api.print_model_title(model_info=model_info)
# Get the model statistics.
@@ -56,3 +60,11 @@
container.chi2 = chi2
container.num_params = k
container.num_data_points = n
+
+ # Statistics printout.
+ data = [
+ ['Chi-squared value:', "%20f" % chi2],
+ ['Number of parameters (k):', "%20i" % k],
+ ['Number of data points (n):', "%20i" % n]
+ ]
+ write_data(out=sys.stdout, data=data)
_______________________________________________
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