jonescompneurolab / hnn-core

Simulation and optimization of neural circuits for MEG/EEG source estimates
https://jonescompneurolab.github.io/hnn-core/
BSD 3-Clause "New" or "Revised" License
50 stars 50 forks source link

API: Add name parameter to add_tonic_bias method #768

Open gtdang opened 1 month ago

gtdang commented 1 month ago

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.