mailr3346 - in /1.3: float.py minimise/simplex.py test_suite/unit_tests/unit_test_runner.py


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

Header


Content

Posted by edward on July 22, 2007 - 18:26:
Author: bugman
Date: Sun Jul 22 18:25:39 2007
New Revision: 3346

URL: http://svn.gna.org/viewcvs/relax?rev=3346&view=rev
Log:
Application of Seb's patch 'patch__empty_line_after_docstring__1.3_r3342'.

The patch is located at 
https://mail.gna.org/public/relax-devel/2007-07/msg00047.html.

This patch (patch__empty_line_after_docstring__1.3_r3342) fixes formating 
issues concerning missing
empty lines after docstrings as found using the code_validator script.  Two 
other small changes are
also made in the 'float.py' file where a docstring was introduced with 4 ' 
symbols ('''') instead of
3 (''') and where there was no space between a # symbol and the following 
text (a comment).


Modified:
    1.3/float.py
    1.3/minimise/simplex.py
    1.3/test_suite/unit_tests/unit_test_runner.py

Modified: 1.3/float.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/float.py?rev=3346&r1=3345&r2=3346&view=diff
==============================================================================
--- 1.3/float.py (original)
+++ 1.3/float.py Sun Jul 22 18:25:39 2007
@@ -121,7 +121,7 @@
 
 
 EXPONENT_SIGN_MASK= 0x7F
-'''' mask to select only bits from byte 8 of an ieee-754 double that are
+''' mask to select only bits from byte 8 of an ieee-754 double that are
 not part of the sign bit (0b11111110)'''
 
 ''' classes of floating point numbers'''
@@ -197,6 +197,7 @@
         throws -- an Exception if bytes contains < 8 bytes
                     type of exception not determined
     '''
+
     # pack bytes into binary string
     doubleString=pack('8B',*bytes)
 
@@ -246,6 +247,7 @@
         throws --  throws a TypeError if the the input object isn't a python 
float
 
     '''
+
     if not isinstance(obj,float):
         raise TypeError('the object recieved wasn\'t a float, type was: %s' 
% type(obj))
 
@@ -272,7 +274,8 @@
         throws --  throws an exception if obj is not composed of 8 bytes
 
     '''
-    #unpack bytes to a binary string (takes care of byte order)
+
+    # unpack bytes to a binary string (takes care of byte order)
     binaryString = floatToBinaryString(obj)
 
     # convert the binary string to an array of 8 bytes
@@ -327,6 +330,7 @@
 
         throws -- tthrows a TypeError if the the input object isn't a python 
float
     '''
+
     return not isPositive(obj)
 
 
@@ -506,6 +510,7 @@
 
         throws -- throws a TypeError if obj isn't a python float
     '''
+
     result = True
 
     # get the exponent as a byte array porperly masked
@@ -527,6 +532,7 @@
 
     throws -- throws a TypeError if obj isn't a python float
     '''
+
     result = True
 
     # get the mantissa as a byte array properly masked
@@ -608,6 +614,7 @@
 
         throws -- throws a TypeError if obj isn't a python float
     '''
+
     # bad result for code checking
     result = None
 
@@ -639,6 +646,7 @@
 
         throws -- throws a TypeError if obj isn't a python float
     '''
+
     return isInf(obj) and isPositive(obj)
 
 

Modified: 1.3/minimise/simplex.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/minimise/simplex.py?rev=3346&r1=3345&r2=3346&view=diff
==============================================================================
--- 1.3/minimise/simplex.py (original)
+++ 1.3/minimise/simplex.py Sun Jul 22 18:25:39 2007
@@ -168,6 +168,7 @@
 
     def order_simplex(self):
         """Order the vertecies of the simplex according to accending 
function values."""
+
         sorted = argsort(self.simplex_vals)
         self.simplex = take(self.simplex, sorted)
         self.simplex_vals = take(self.simplex_vals, sorted)

Modified: 1.3/test_suite/unit_tests/unit_test_runner.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/unit_test_runner.py?rev=3346&r1=3345&r2=3346&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/unit_test_runner.py (original)
+++ 1.3/test_suite/unit_tests/unit_test_runner.py Sun Jul 22 18:25:39 2007
@@ -288,6 +288,7 @@
         @rtype:
         @return:
         '''
+
     result = None
     packages = None
     package_path=get_module_relative_path(package_path, module_name)




Related Messages


Powered by MHonArc, Updated Sun Jul 22 18:40:05 2007