ioam / topographica

A general-purpose neural simulator focusing on topographic maps.
topographica.org
BSD 3-Clause "New" or "Revised" License
53 stars 32 forks source link

The command for updating connection field #681

Open kalok87 opened 6 years ago

kalok87 commented 6 years ago

Dear developers,

Yesterday I ran topographica and I found that I can get the connection field of unit (0,0) in V1 by using the command:

topo.sim['V1'].sheet_views[('Weights', 'V1', 'LateralInhibitory', 0.0, 0.0)].view()

But today when I restart the software the keys ('Weights', 'V1', 'LateralInhibitory', 0.0, 0.0) and ('Weights', 'V1', 'LateralExcitatory', 0.0, 0.0) disappear from topo.sim['V1'].sheet_views. I believe there must be a command for performing the updating. I have tried:

topo.command.analysis.update_connectionfields() topo.command.analysis.update_projection()

but it is still unsuccessful, could you tell me the commands for doing that?

jbednar commented 6 years ago

topo.command.analysis.update_connectionfields() should have worked; not sure why it didn't in your case. You'll need to supply a coords=[0.1,0.3] argument to it if you want a unit other than 0.0,0.0.

kalok87 commented 6 years ago

Dear Prof. Bednar,

After using topo.command.analysis.update_connectionfields(coords = [0.0,0.0]), the command: topo.sim['V1'].sheet_views.keys() gives an empty set. Is it possible that we need another argument to specify the sheet where we perform the measurement? Like 'V1', "LGNon', etc. Because if I use the GUI and then select Plots -> Connection Filed, choosing V1 sheet and refresh the current plots, it works again.

Thank you for your replying.

jbednar commented 6 years ago

Oops, yes; I think you need to supply outputs=[topo.sim.V1] as an argument as well. You should be able to find out the arguments supported by using help(topo.command.analysis.update_connnectionfields).