def __init__(self, cellDimensions):
    """
    Initialize this instance, and form all reciprocal connections between this
    instance and an array of SensorToSpecificObjectModules.

    @param cellDimensions (sequence of ints)
    @param sensorToSpecificObjectByColumn (sequence of SensorToSpecificObjectModules)
    """
    self.cellCount = np.prod(cellDimensions)
    self.cellDimensions = np.asarray(cellDimensions)
    self.connectedPermanence = 0.5

    # This offset logic assumes there are no "middle" rows or columns
    assert cellDimensions[0] % 2 == 0
    assert cellDimensions[1] % 2 == 0
def __init__ ( self , cellDimensions ) : self . cellCount = np . prod ( cellDimensions ) self . cellDimensions = np . asarray ( cellDimensions ) self . connectedPermanence = 0.5 assert cellDimensions [ 0 ] % 2 == 0 assert cellDimensions [ 1 ] % 2 == 0
Initialize this instance, and form all reciprocal connections between this
    instance and an array of SensorToSpecificObjectModules.

    @param cellDimensions (sequence of ints)
    @param sensorToSpecificObjectByColumn (sequence of SensorToSpecificObjectModules)