Show
Ignore:
Timestamp:
03/11/10 17:41:37 (2 years ago)
Author:
pierre
Message:

Minor modification in the test to be able to pass the tests for connectors2.py. Still in testing phase, but you can try it if you want, and report bugs if any. Seems to work. I'll add also a progressbar I think to all those Connector, to be able to visualize the status of the connections. Can be useful maybe, to have an idea of the building time

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/test/unittests/generictests.py

    r725 r728  
    886886            for tgtP in [self.target6, self.target33]: 
    887887                for conn in connectors: 
    888                     print conn.w_expr 
     888                    #print conn.w_expr 
    889889                    prj = sim.Projection(srcP, tgtP, conn) 
    890890                    first_connection = prj.connections[0] 
     
    892892                    for c in first_connection, last_connection: 
    893893                       d = space.distance(c.source, c.target) 
    894                        self.assertAlmostEqual(c.weight, eval(conn.w_expr), 10) 
     894                       self.assertAlmostEqual(c.weight, eval(conn.weights), 10) 
    895895 
    896896class ProjectionSetTest(unittest.TestCase):