Guard Section¶

- class GuardSection(duration, num_repetitions=1, frame=None)[source]¶
 Bases:
GridSection[OrthogonalWaveform],SerializableGuard section within the time-domain of a resource grid.
- Parameters:
 num_repetitions (
int) – Number of times this section is repeated in time-domain.sample_offset – Offset in samples to the start of the section.
wave – Waveform this section is associated with. Defaults to None.
- classmethod Deserialize(process)[source]¶
 Deserialize an object’s state.
Objects cannot be deserialized directly, instead a
Factorymust be instructed to carry out the deserialization process.- Parameters:
 process (
DeserializationProcess) – The current stage of the deserialization process. This object is generated by theFactoryand provides an interface to deserialization methods supporting multiple backends.- Return type:
 - Returns:
 The deserialized object.
- pick_samples(signal)[source]¶
 Pick this section’s samples from the time-domain signal.
- Parameters:
 signal (
ndarray) – Time-domain signal to be picked from. Numpy vector of size num_samples.- Return type:
 
Returns: Time-domain signal with the section’s samples picked.
- place_samples(signal)[source]¶
 Place this section’s samples into the time-domain signal.
- Parameters:
 signal (
ndarray) – Time-domain signal to be placed. Numpy vector of size num_samples.- Return type:
 
Returns: Time-domain signal with the section’s samples placed.
- serialize(process)[source]¶
 Serialize this object’s state.
Objects cannot be serialized directly, instead a
Factorymust be instructed to carry out the serialization process.- Parameters:
 process (
SerializationProcess) – The current stage of the serialization process. This object is generated by theFactoryand provides an interface to serialization methods supporting multiple backends.- Return type: