BlueBrain / BlueCelluLab

Biologically detailed neural network simulations and analysis API
https://bluecellulab.readthedocs.io/en/latest/
Other
8 stars 12 forks source link

StimulusFactory: enable amplitude based versions of the protocols #180

Closed anilbey closed 2 months ago

anilbey commented 2 months ago

At the moment the following protocols are only threshold-based.

Some of the non-bbp models however are amplitude based.

The StimulusFactory should be extended to support the amplitude based methods as well. The amplitude based implementation can be reused by the threshold based implementation.

Such as the following: https://github.com/BlueBrain/BlueCelluLab/blob/fcf8ad0727c93b3480736c43cef0333eaa4bd14e/bluecellulab/stimulus/factory.py#L264-L272

AurelienJaquier commented 2 months ago

We can now use amplitude based (i.e. non threshold based) stimuli in apply_multiple_stimuli by passing raw amplitudes to amplitudes and setting threshold_based to False. pinging @stefanoantonel because he might need to inject without using threshold current.

stefanoantonel commented 2 months ago

Cool thanks!!