Reed-Solomon Coding

A Python wrapper around the AFF3CT [1] project, transferring the Reed-Solomon [2] implementations to the Hermes forward error correction pipeline structure.

class ReedSolomonCoding(self:, arg0: int, arg1: int)

Bases: pybind11_object

  • data_block_size (int) – Number of data bits per block to be encoded.

  • power (correction) – Number of symbol errors the coding may correct.

decode(self:, arg0: numpy.ndarray[numpy.int32]) numpy.ndarray[numpy.int32]

Decode a block of code bits to data bits.


code (numpy.ndarray) – The code bit block to be decoded.


The data bit block after decoding.

encode(self:, arg0: numpy.ndarray[numpy.int32]) numpy.ndarray[numpy.int32]

Encode a block of data bits to code bits.


data (numpy.ndarray) – The data bit block to be encoded.


The code bit block after encoding.

property bit_block_size

Number of bits within a data block to be encoded.

property code_block_size

Number of bits within a code block to be decoded.

property correction_power

Number of symbol errors the coding may correct.

enabled = True