STADLS
stadls::vx::PlaybackProgram Class Reference

Sequential stream of executable instructions for the executor and result-container for event response data during execution.Get MADC samples as 2D matrix, i.e. More...

#include <playback_program.h>

Classes

class  ContainerTicket
 Ticket for to-be-available container data corresponding to a read instruction. More...
 

Public Types

typedef ::stadls::vx::PlaybackProgram::spikes_type _values_type
 
typedef fisch::vx::FPGATime fpga_time_type
 
typedef std::vector< haldls::vx::HighspeedLinkNotification > highspeed_link_notifications_type
 
typedef fisch::vx::PlaybackProgram::madc_sample_pack_counts_type madc_sample_pack_counts_type
 
typedef std::vector< haldls::vx::MADCSampleFromChip > madc_samples_type
 
typedef fisch::vx::PlaybackProgram::spike_pack_counts_type spike_pack_counts_type
 
typedef std::vector< haldls::vx::SpikeFromChip > spikes_type
 

Public Member Functions

 PlaybackProgram () SYMBOL_VISIBLE
 Default constructor. More...
 
attr attr ("to_numpy")
 
bool empty () const SYMBOL_VISIBLE
 Get whether program is empty, i.e. More...
 
highspeed_link_notifications_type get_highspeed_link_notifications () const SYMBOL_VISIBLE
 Get vector of time-annotated highspeed-link notifications. More...
 
madc_samples_type get_madc_samples () const SYMBOL_VISIBLE
 Get vector of time-annotated MADC sample events. More...
 
madc_sample_pack_counts_type const & get_madc_samples_pack_counts () const SYMBOL_VISIBLE
 Get number of occurences of MADC sample packing from chip. More...
 
spikes_type get_spikes () const SYMBOL_VISIBLE
 Get vector of time-annotated spike events. More...
 
spike_pack_counts_type const & get_spikes_pack_counts () const SYMBOL_VISIBLE
 Get number of occurences of spike packing from chip. More...
 
std::unordered_set< hxcomm::vx::Target > const & get_unsupported_targets () const SYMBOL_VISIBLE
 Get set of unsupported targets. More...
 
bool operator!= (PlaybackProgram const &other) const SYMBOL_VISIBLE
 
bool operator== (PlaybackProgram const &other) const SYMBOL_VISIBLE
 
 pybind11::bind_vector (parent, "spikes_type")
 Get spikes as 2D matrix, i.e. More...
 

Public Attributes

auto ism = parent->py::is_method(attr)
 

Friends

std::ostream & operator<< (std::ostream &os, PlaybackProgram const &program) SYMBOL_VISIBLE
 

Detailed Description

Sequential stream of executable instructions for the executor and result-container for event response data during execution.Get MADC samples as 2D matrix, i.e.

numpy array(s).

Note
We expose the data as a flat numpy DTYPE with the same data layout as the underlying MADCSampleFromChipDType type.

Definition at line 60 of file playback_program.h.

Member Typedef Documentation

◆ _values_type

  • This version exposes with 3 columns: * chip time, neuron label, and spl1 address

Definition at line 219 of file playback_program.h.

◆ fpga_time_type

typedef fisch::vx::FPGATime stadls::vx::PlaybackProgram::fpga_time_type

Definition at line 63 of file playback_program.h.

◆ highspeed_link_notifications_type

typedef std::vector<haldls::vx::HighspeedLinkNotification> stadls::vx::PlaybackProgram::highspeed_link_notifications_type

Definition at line 125 of file playback_program.h.

◆ madc_sample_pack_counts_type

typedef fisch::vx::PlaybackProgram::madc_sample_pack_counts_type stadls::vx::PlaybackProgram::madc_sample_pack_counts_type

Definition at line 129 of file playback_program.h.

◆ madc_samples_type

typedef std::vector<haldls::vx::MADCSampleFromChip> stadls::vx::PlaybackProgram::madc_samples_type

Definition at line 124 of file playback_program.h.

◆ spike_pack_counts_type

typedef fisch::vx::PlaybackProgram::spike_pack_counts_type stadls::vx::PlaybackProgram::spike_pack_counts_type

Definition at line 127 of file playback_program.h.

◆ spikes_type

typedef std::vector<haldls::vx::SpikeFromChip> stadls::vx::PlaybackProgram::spikes_type

Definition at line 123 of file playback_program.h.

Constructor & Destructor Documentation

◆ PlaybackProgram()

stadls::vx::PlaybackProgram::PlaybackProgram ( )

Default constructor.

Member Function Documentation

◆ attr()

attr stadls::vx::PlaybackProgram::attr ( "to_numpy"  )

◆ empty()

bool stadls::vx::PlaybackProgram::empty ( ) const

Get whether program is empty, i.e.

does not feature any commands to be sent.

Returns
Boolean value

◆ get_highspeed_link_notifications()

highspeed_link_notifications_type stadls::vx::PlaybackProgram::get_highspeed_link_notifications ( ) const

Get vector of time-annotated highspeed-link notifications.

Returns
Vector of notifications

◆ get_madc_samples()

madc_samples_type stadls::vx::PlaybackProgram::get_madc_samples ( ) const

Get vector of time-annotated MADC sample events.

Returns
Vector of sample events

◆ get_madc_samples_pack_counts()

madc_sample_pack_counts_type const& stadls::vx::PlaybackProgram::get_madc_samples_pack_counts ( ) const

Get number of occurences of MADC sample packing from chip.

Returns
Array of packing occurences

◆ get_spikes()

spikes_type stadls::vx::PlaybackProgram::get_spikes ( ) const

Get vector of time-annotated spike events.

Returns
Vector of spike events

◆ get_spikes_pack_counts()

spike_pack_counts_type const& stadls::vx::PlaybackProgram::get_spikes_pack_counts ( ) const

Get number of occurences of spike packing from chip.

Returns
Array of packing occurences

◆ get_unsupported_targets()

std::unordered_set<hxcomm::vx::Target> const& stadls::vx::PlaybackProgram::get_unsupported_targets ( ) const

Get set of unsupported targets.

Returns
Set of target restictions

◆ operator!=()

bool stadls::vx::PlaybackProgram::operator!= ( PlaybackProgram const &  other) const

◆ operator==()

bool stadls::vx::PlaybackProgram::operator== ( PlaybackProgram const &  other) const

◆ pybind11::bind_vector()

stadls::vx::PlaybackProgram::pybind11::bind_vector ( parent  ,
"spikes_type"   
)

Get spikes as 2D matrix, i.e.

numpy array(s).

Note
We expose the data as a flat numpy DTYPE with the same data layout as the underlying SpikeFromChipDType type.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
PlaybackProgram const &  program 
)
friend

Member Data Documentation

◆ ism

auto stadls::vx::PlaybackProgram::ism = parent->py::is_method(attr)

Definition at line 219 of file playback_program.h.


The documentation for this class was generated from the following file: