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

Represents a collection of PulseBlock objects which is called a PulseBlockEnsemble. More...

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

Public Member Functions

def __init__ (self, name, block_list=None, rotating_frame=True)
 The constructor for a Pulse_Block_Ensemble needs to have: More...
 
def __repr__ (self)
 
def __str__ (self)
 
def __eq__ (self, other)
 
def __len__ (self)
 
def __getitem__ (self, key)
 
def __setitem__ (self, key, value)
 
def __delitem__ (self, key)
 
def pop (self, position=None)
 
def insert (self, position, element)
 Insert a (PulseBlock.name, repetitions) tuple 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 ensemble_from_dict (ensemble_dict)
 

Public Attributes

 name
 
 rotating_frame
 
 block_list
 
 sampling_information
 
 measurement_information
 

Detailed Description

Represents a collection of PulseBlock objects which is called a PulseBlockEnsemble.

This object is used as a construction plan to create one sampled file.

Constructor & Destructor Documentation

◆ __init__()

def pulse_objects.PulseBlockEnsemble.__init__ (   self,
  name,
  block_list = None,
  rotating_frame = True 
)

The constructor for a Pulse_Block_Ensemble needs to have:

Parameters
strname: chosen name for the PulseBlockEnsemble
listblock_list: contains the PulseBlock names with their number of repetitions, e.g. [(name, repetitions), (name, repetitions), ...])
boolrotating_frame: indicates whether the phase should be preserved for all the functions.

Member Function Documentation

◆ insert()

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

Insert a (PulseBlock.name, repetitions) tuple 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
tupleelement: (PulseBlock name (str), repetitions (int))

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