Source code for bmtk.simulator.dpointnet.input_modules.noisy_current
from .inputs_base import InputsGeneratorMod
[docs]
class PoissonSpikesInternal(InputsGeneratorMod):
def __init__(self, rnn, name, input_network, firing_rate, **kwargs):
super().__init__(rnn=rnn, name=name, input_network=input_network, **kwargs)
input_network.input_type = 'current'
self.input_network.options['input_type'] = 'poisson_spikes_internal'
self.input_network.options['firing_rate'] = firing_rate
[docs]
@staticmethod
def module():
return 'poisson_spikes_internal'
[docs]
def create_generator(self, **kwargs):
return None
[docs]
class NoisyCurrent(PoissonSpikesInternal):
[docs]
@staticmethod
def module():
return 'noisy_current'