Coder Social home page Coder Social logo

BCH Encoding Issue about py_aff3ct HOT 4 CLOSED

aff3ct avatar aff3ct commented on July 17, 2024
BCH Encoding Issue

from py_aff3ct.

Comments (4)

rtajan avatar rtajan commented on July 17, 2024

Hi,

Thank you for using our project.

First note that Decoder_BCH hesitates from Decoder_SIHO.
I think that you get this error because the task decode_siho is not implemented in the aff3ct::module::Decoder_SIHO class.

Since Decoder_BCH does not implement its own, the exception is raised.

A decoder that has an implemented decode_siho task is for example Decoder_BCH_std.
You can build it within your example with

dec  = py_aff3ct.module.decoder.Decoder_BCH_std(K, N, enc_pol)

For examples using other coding strategies you can find some here.

It is possible to use py_aff3ct with an SDR module for example using the UHD C++ API (see here for example).

Regards

from py_aff3ct.

MrEvgy avatar MrEvgy commented on July 17, 2024

Thank you very much for the fast and detailed response! It works well now and the examples in the links are exactly like what I was looking for.

One followup question: while reading the source bits, I see that the source has 7 values of 1 (read using the src['generate::U_K'][:] command). I expected random values, do you know perhaps why it is a constant 1?

Thanks again.

from py_aff3ct.

rtajan avatar rtajan commented on July 17, 2024

I believe this is just a realization, if you call src['generate']several times does the value of src['generate::U_K'][:] change?
You can also try to change the seed of the random number generator of the Source_random module, see this constructor

__init__(self: py_aff3ct.module.source.Source_random, K: int, seed: int = 0) -> None

from py_aff3ct.

MrEvgy avatar MrEvgy commented on July 17, 2024

Works well, I was just reading the vector too early :(
Also, tried one of the python examples from your link (the bfer_polar.py), also works good.

Thanks again.

from py_aff3ct.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.