brian-team / brian2genn

Brian 2 frontend to the GeNN simulator
http://brian2genn.readthedocs.io/
GNU General Public License v2.0
46 stars 16 forks source link

Solution for multiple connect calls that lead to arrays #107

Closed tnowotny closed 4 years ago

tnowotny commented 4 years ago

Ok ... here is a suggestion of how to fix the problem with multiple connect calls that lead to "array" type connections. This follows strategy 1 of doing it in Python. However, it still does not work when connections are generated with connect calls where one call leads to an array on disk and another to a generator code_object. In my mind there are two possibilities:

  1. change tack and indeed load arrays in the buildmodel phase and count synapses aping the full synapse creation cycle of the eventual simulation.
  2. make an upper bound by assuming all source (target) neurons have the max connections from the file based connectivity and add the connections from the created connectivity; this will overestimate the the max_row_length (max_col_length) but maybe that is acceptable?