hnn-core icon indicating copy to clipboard operation
hnn-core copied to clipboard

API: Add name parameter to add_tonic_bias method

Open gtdang opened this issue 9 months ago • 0 comments

Discussed in #764 Add a name parameter to this method: net.add_tonic_bias(..., name='tonic1'). The name will add a external bias key of the name supplied:

self.external_biases[<NAME>][cell_type] = {
            'amplitude': amplitude,
            't0': t0,
            'tstop': tstop

Currently only one external bias with the default name 'tonic' could be added to the network. Areas where this is key is referenced would need to be updated to handle multiple external biases.

gtdang avatar May 14 '24 14:05 gtdang