ikaros-project / ikaros

An open infrastructure for system level brain modeling
GNU General Public License v2.0
23 stars 23 forks source link

Source offset and arbiter module #166

Closed birgerjohansson closed 2 years ago

birgerjohansson commented 2 years ago

Adding offset to input connections to arbiter (see xml below) creates an output of size 3x3. I expected an array of 3. I believe this is a bug.

<module class = "Constant" name = "XYZTarget" data = "0.2 0.2 0.2; 0.3 0.3 0.3; 0.4 0.4 0.4;"/>

<!-- Buttons -->
<module class = "Constant" name = "TargetSlectionValueTopDown" data = "0 0 0"/>

<module class = "Arbiter" name = "TopDownTarget" no_of_inputs = "3"/>
    <connection  source = "XYZTarget.OUTPUT"   sourceoffset = "0" targeteoffset = "0"  size = "3" target = "TopDownTarget.INPUT_1" />
    <connection  source = "TargetSlectionValueTopDown.OUTPUT"   sourceoffset = "0" targeteoffset = "0"  size = "1"  target = "TopDownTarget.VALUE_1" />

    <connection  source = "XYZTarget.OUTPUT"   sourceoffset = "3" targeteoffset = "0"  size = "3" target = "TopDownTarget.INPUT_2" />
    <connection  source = "TargetSlectionValueTopDown.OUTPUT"   sourceoffset = "1" targeteoffset = "0"  size = "1"  target = "TopDownTarget.VALUE_2" />

    <connection  source = "XYZTarget.OUTPUT"   sourceoffset = "6" targeteoffset = "0"  size = "3" target = "TopDownTarget.INPUT_3" />
    <connection  source = "TargetSlectionValueTopDown.OUTPUT"   sourceoffset = "2" targeteoffset = "0"  size = "1"  target = "TopDownTarget.VALUE_3" />
birgerjohansson commented 2 years ago

Changing the XYZTarget module to:

Produce the expected output.

birgerjohansson commented 2 years ago

Typo targeteoffset != targetoffset