ikaros-project / ikaros

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

Adding connections with offset are ignored #152

Open trondarild opened 4 years ago

trondarild commented 4 years ago

There seems to be problems with adding connections with and without offset to a module (this could be a duplicate of an older issue). Note that adding offset to all connections appears not work either, only one connection is used.

To reproduce:


<?xml version="1.0"?>

<group>

        <module class = "Constant" name = "Constant1" outputsize = "5" data="1 2 3 4 5" />
        <module class = "Constant" name = "Constant2" outputsize = "5" data="5 4 3 2 1" />

        <module class = "Constant" name = "Constant3" data="1" />
        <module class = "Constant" name = "Constant4" data="5" />

        <module
            class = "Subtract"
            name = "Subtract2"
        />
        <connection  source = "Constant1.OUTPUT" sourceoffset="0" size="1" target = "Subtract2.INPUT1" />
        <connection  source = "Constant3.OUTPUT"  target = "Subtract2.INPUT1" />
        <connection  source = "Constant2.OUTPUT" sourceoffset="0" size="1" target = "Subtract2.INPUT2" />
        <connection  source = "Constant4.OUTPUT"  target = "Subtract2.INPUT2" />

<view name="View" >
        <table  x = "160" y = "380" height = "200" width = "200" title = "Subtract2" source = "Subtract2.OUTPUT" label_x = "" label_y = "" direction = "normal" decimals = "1" colorize = "true" scrollable = "false" show_title = "true" show_frame = "false" style = "" frame-style = ""/>
</view>

    <module class = "Logger" name = "Logger" />
</group>
christianbalkenius commented 4 years ago

This is related to #63 and #85.