mailr3047 - /branches/error_import/data/diff_tensor.py


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

Header


Content

Posted by edward on February 27, 2007 - 06:45:
Author: bugman
Date: Tue Feb 27 06:28:48 2007
New Revision: 3047

URL: http://svn.gna.org/viewcvs/relax?rev=3047&view=rev
Log:
Removed all of the temporary Debug flags from the 'data.diff_tensor' module.

These are now unnecessary as this code is now functional in the 1.3 line.


Modified:
    branches/error_import/data/diff_tensor.py

Modified: branches/error_import/data/diff_tensor.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/error_import/data/diff_tensor.py?rev=3047&r1=3046&r2=3047&view=diff
==============================================================================
--- branches/error_import/data/diff_tensor.py (original)
+++ branches/error_import/data/diff_tensor.py Tue Feb 27 06:28:48 2007
@@ -291,15 +291,6 @@
         if not param_name in update_if_set:
             return
 
-        # Debugging.
-        if Debug:
-            print "\n\n"
-            print "Param name: " + `param_name`
-            print "Target: " + `target`
-            print "update_if_set: " + `update_if_set`
-            print "Depends: " + `depends`
-            print "Category: " + `category`
-
         # Get the function for calculating the value.
         fn = globals()['calc_'+target]
 
@@ -314,28 +305,16 @@
             for dep_name in depends:
                 # Test if the object exists.
                 if not hasattr(self, dep_name):
-                    # Debugging.
-                    if Debug:
-                        print "Missing dep: " + `dep_name`
-
                     missing_dep = 1
                     break
 
                 # Get the object and place it into the 'deps' tuple.
                 deps = deps+(getattr(self, dep_name),)
-
-            # Debugging.
-            if Debug:
-                print "Deps: " + `deps`
 
             # Only update the object if its dependencies exist.
             if not missing_dep:
                 # Calculate the value.
                 value = fn(*deps)
-
-                # Debugging.
-                if Debug:
-                    print "Value: " + `value`
 
                 # Set the attribute.
                 self.__dict__[target] = value




Related Messages


Powered by MHonArc, Updated Tue Feb 27 07:00:07 2007