Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/h/e/Helmholtz-0.2.0/helmholtz/analysis/tools/examples/analysis_test.py   Helmholtz(Download)
from NeuroTools import parameters
from NeuroTools.stgen import StGen
from NeuroTools.signals import SpikeTrain, SpikeList
import shutil
import os
                                                                self.y/1000.0,
                                                                self.sim_duration) # times in ms, rate in spikes/ms
        self.spike_train = SpikeTrain(spike_times, t_start=0, t_stop=self.sim_duration)
        logging.debug("  Generating spikes for GaborCell %d: %d spikes" % (self.id, len(self.spike_train)))
        logging.debug("  Maximum firing rate: %g spikes/s" % self.y.max())

src/h/e/Helmholtz-0.2.0/helmholtz/analysis/tools/examples/component_generator.py   Helmholtz(Download)
from NeuroTools import parameters
from NeuroTools.stgen import StGen
from NeuroTools.signals import SpikeTrain, SpikeList
import shutil
import os

src/n/e/NeuroTools-0.2.0/src/spike2/spike2channels.py   NeuroTools(Download)
                time = self.time(timeunits='milliseconds')
                events = time[above][take]
                return signals.SpikeTrain(events)
            else:
                return signals.SpikeTrain(self.events)