mailr22770 - /trunk/relax.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on April 15, 2014 - 16:34:
Author: bugman
Date: Tue Apr 15 16:34:39 2014
New Revision: 22770

URL: http://svn.gna.org/viewcvs/relax?rev=22770&view=rev
Log:
Clean up of the debugging command line options.

The debug flag now will cause stack tracebacks to be printed on all 
RelaxWarnings.


Modified:
    trunk/relax.py

Modified: trunk/relax.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/relax.py?rev=22770&r1=22769&r2=22770&view=diff
==============================================================================
--- trunk/relax.py      (original)
+++ trunk/relax.py      Tue Apr 15 16:34:39 2014
@@ -315,21 +315,18 @@
         # Parse the options.
         (options, args) = parser.parse_args()
 
-        # Debugging flag (and numpy warning to error conversion).
+        # Debugging options:  Debugging flag, escalate flag, traceback flag, 
and numpy warning to error conversion.
         if options.debug:
             status.debug = True
-        if options.numpy_raise:
-            numpy.seterr(all='raise')
-
-        # escalate flag.
+            lib.warnings.TRACEBACK = True
         if options.escalate:
             lib.warnings.ESCALATE = True
             lib.errors.ESCALATE = True
-
-        # Traceback flag.
         if options.traceback:
             status.traceback = True
             lib.warnings.TRACEBACK = True
+        if options.numpy_raise:
+            numpy.seterr(all='raise')
 
         # Script prompt interactive inspection flag.
         if options.prompt:




Related Messages


Powered by MHonArc, Updated Tue Apr 15 17:00:02 2014