Weights being reset in parallel NetCons
Posted: Mon Jun 15, 2009 9:06 pm
I am using nc_append() to make a NetCon, but the weight is a vector. Since nc_append() seems to only accept a double for the weight, which gets assigned weight[0], I want to change the weight of subsequent elements of that vector, which I can seem to do by
I can validate that the value took if I print the value,
However, once I run(), weight[elem] gets reset to zero. I can, however, change weight[0] with this technique and it sticks.
How can I either send a vector using nc_append() or set these elements properly?
Thanks,
Tom
Code: Select all
pnm.nclist.o(objidx).weight[elem]=newVal
Code: Select all
print pnm.nclist.o(objidx).weight[elem]
How can I either send a vector using nc_append() or set these elements properly?
Thanks,
Tom