Resource¶

- class GridResource(repetitions=1, prefix_type=PrefixType.CYCLIC, prefix_ratio=0.0, elements=None)[source]¶
Bases:
SerializableConfigures 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
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.
- 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:
-
elements:
list[GridElement][source]¶ Individual resource elements
- property mask: ndarray[tuple[int, int], dtype[bool]][source]¶
Boolean mask selecting a specific type of element from the OFDM grid.
Mask of dimension num_element_types`x`num_subcarriers*num_repetitions.
- property prefix_ratio: float[source]¶
Ratio between full block length and prefix length.
- Raises:
ValueError – If ratio is less than zero.
-
prefix_type:
PrefixType[source]¶ Prefix type of the frame resource
- class PrefixType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
Bases:
SerializableEnumType of prefix applied to the grid resource in time-domain.