Qudi
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
pulse_objects.PulseBlock Class Reference

Collection of Pulse_Block_Elements which is called a Pulse_Block. More...

Inheritance diagram for pulse_objects.PulseBlock:
Inheritance graph
[legend]
Collaboration diagram for pulse_objects.PulseBlock:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, name, element_list=None)
 The constructor for a Pulse_Block needs to have: More...
 
def __repr__ (self)
 
def __str__ (self)
 
def __len__ (self)
 
def __getitem__ (self, key)
 
def __setitem__ (self, key, value)
 
def __delitem__ (self, key)
 
def __eq__ (self, other)
 
def refresh_parameters (self)
 Initialize the parameters which describe this Pulse_Block object. More...
 
def pop (self, position=None)
 
def insert (self, position, element)
 Insert a PulseBlockElement at the given position. More...
 
def append (self, element)
 
def extend (self, iterable)
 
def clear (self)
 
def reverse (self)
 
def get_dict_representation (self)
 

Static Public Member Functions

def block_from_dict (block_dict)
 

Public Attributes

 name
 
 element_list
 
 init_length_s
 
 increment_s
 
 analog_channels
 
 digital_channels
 
 channel_set
 

Detailed Description

Collection of Pulse_Block_Elements which is called a Pulse_Block.

Constructor & Destructor Documentation

◆ __init__()

def pulse_objects.PulseBlock.__init__ (   self,
  name,
  element_list = None 
)

The constructor for a Pulse_Block needs to have:

Parameters
strname: chosen name for the Pulse_Block
listelement_list: which contains the Pulse_Block_Element Objects forming a Pulse_Block, e.g. [Pulse_Block_Element, Pulse_Block_Element, ...]

Member Function Documentation

◆ insert()

def pulse_objects.PulseBlock.insert (   self,
  position,
  element 
)

Insert a PulseBlockElement at the given position.

The old element at this position and all consecutive elements after that will be shifted to higher indices.

Parameters
intposition: position in the element list
PulseBlockElementelement: PulseBlockElement instance

◆ refresh_parameters()

def pulse_objects.PulseBlock.refresh_parameters (   self)

Initialize the parameters which describe this Pulse_Block object.

The information is gained from all the Pulse_Block_Element objects, which are attached in the element_list.


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