PulseList
- class PulseList(iterable=None)
Represent multiple pulses.
Tht class behaves similarly to a standard
list
, it supports indexing, setting items, iteration, and querying its length. It is specifically tailored for handling collections ofPulse
instances.Initialize a list of pulses.
Hint
Iterable over
Pulse
elements:
for pulse in pulse_list: print(pulse)
Supports indexing and item assignment:
pulse = pulse_list[0] pulse_list[1] = Pulse(...)
Concatenate with another
PulseList
:
new_pulse_list = pulse_list1 + pulse_list2
Methods
append
(new_pulse)Append a pulse.
convert_to_time_segment_sequence
([start, end])Convert the to
TimeSegmentSequence
.Attributes
Check if all pulses have a constant envelope.
Number of pulses.