ikaros-project / ikaros

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

Problem with group parameters, and setting sizes from parameters #143

Closed trondarild closed 4 years ago

trondarild commented 4 years ago

When setting output sizes from parameters like size_param_x="size_x" size_param_y="size_y"

and attempting to set these parameters again via group parameters, the group parameters appear not to propagate through.

Attaching group file with test to reproduce (remove .txt):

JoinInverse.ikg.txt joininverse_test.ikg.txt

Should give following errors: IKAROS: ERROR: JI.SetSub1 (SetSubmatrix): Source is larger than destination: (3, 3) vs (1, 1). IKAROS: ERROR: JI.SetSub2 (SetSubmatrix): Source is larger than destination: (3, 3) vs (1, 1).

christianbalkenius commented 4 years ago

This appears to work when the target for a parameter is only a single name like "size_x" but not if it includes a specific module like "Base.size_x". The second case should work in the future, though.