Resource¶

- class GridResource(repetitions=1, prefix_type=PrefixType.CYCLIC, prefix_ratio=0.0, elements=None)[source]¶
Bases:
Serializable
Configures one sub-section of a resource grid in both dimensions.
- classmethod Deserialize(process)[source]¶
Deserialize an object’s state.
Objects cannot be deserialized directly, instead a
Factory
must be instructed to carry out the deserialization process.- Parameters:
process (
DeserializationProcess
) – The current stage of the deserialization process. This object is generated by theFactory
and provides an interface to deserialization methods supporting multiple backends.- Return type:
- Returns:
The deserialized object.
- serialize(process)[source]¶
Serialize this object’s state.
Objects cannot be serialized directly, instead a
Factory
must be instructed to carry out the serialization process.- Parameters:
process (
SerializationProcess
) – The current stage of the serialization process. This object is generated by theFactory
and provides an interface to serialization methods supporting multiple backends.- Return type:
-
elements:
List
[GridElement
]¶ Individual resource elements
- property mask: ndarray¶
Boolean mask selecting a specific type of element from the OFDM grid.
Mask of dimension num_element_types`x`num_subcarriers.
- property prefix_ratio: float¶
Ratio between full block length and prefix length.
Ratio is between zero and one.
- Raises:
ValueError – If ratio is less than zero or larger than one.
-
prefix_type:
PrefixType
¶ Prefix type of the frame resource
- class PrefixType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
Bases:
SerializableEnum
Type of prefix applied to the grid resource in time-domain.
- CYCLIC = 0¶
Cyclic prefix repeating the resource waveform in time-domain
- NONE = 2¶
No prefix applied
- ZEROPAD = 1¶
Prefix zero-padding the prefix in time-domain