Public Types | Public Member Functions
bbp::sonata::SpikeReader::Population Class Reference

Public Types

enum  Sorting : char { none = 0, by_id = 1, by_time = 2 }
 

Public Member Functions

std::tuple< double, double > getTimes () const
 
Spikes get (const nonstd::optional< Selection > &node_ids=nonstd::nullopt, const nonstd::optional< double > &tstart=nonstd::nullopt, const nonstd::optional< double > &tstop=nonstd::nullopt) const
 
const SpikeTimesgetRawArrays () const
 
SpikeTimes getArrays (const nonstd::optional< Selection > &node_ids=nonstd::nullopt, const nonstd::optional< double > &tstart=nonstd::nullopt, const nonstd::optional< double > &tstop=nonstd::nullopt) const
 
Sorting getSorting () const
 

Member Function Documentation

◆ get()

Spikes bbp::sonata::SpikeReader::Population::get ( const nonstd::optional< Selection > &  node_ids = nonstd::nullopt,
const nonstd::optional< double > &  tstart = nonstd::nullopt,
const nonstd::optional< double > &  tstop = nonstd::nullopt 
) const

Return spikes with all those node_ids between 'tstart' and 'tstop'

◆ getArrays()

SpikeTimes bbp::sonata::SpikeReader::Population::getArrays ( const nonstd::optional< Selection > &  node_ids = nonstd::nullopt,
const nonstd::optional< double > &  tstart = nonstd::nullopt,
const nonstd::optional< double > &  tstop = nonstd::nullopt 
) const

Return the node_ids and timestamps vectors with all node_ids between 'tstart' and 'tstop'

◆ getRawArrays()

const SpikeTimes& bbp::sonata::SpikeReader::Population::getRawArrays ( ) const

Return the raw node_ids and timestamps vectors

◆ getSorting()

Sorting bbp::sonata::SpikeReader::Population::getSorting ( ) const

Return the way data are sorted ('none', 'by_id', 'by_time')

◆ getTimes()

std::tuple<double, double> bbp::sonata::SpikeReader::Population::getTimes ( ) const

Return (tstart, tstop) of the population