Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using multiple instances of RSCodec fails #71

Open
christakahashi opened this issue Aug 17, 2023 · 0 comments
Open

Using multiple instances of RSCodec fails #71

christakahashi opened this issue Aug 17, 2023 · 0 comments

Comments

@christakahashi
Copy link

the following code fails on the last line

_test_coder = reedsolo.RSCodec(5,c_exp=8)

txt = np.random.randint(0,32,27,dtype=np.int8); print(txt)
_rtxt = _test_coder.encode(txt); print(list(_rtxt))
_test_coder2 = reedsolo.RSCodec(5,c_exp=9)
_ptxt = _test_coder.decode(_rtxt)[0]; print(list(_ptxt))

It works fine when i don't instantiate _test_coder2. I started with the default version installed by pip (1.7.0) and then tried with the version given by pip with the --pre flag (2.1.1b1). both produce the same error. I'm using anaconda environments and python 3.9.

Also, there doesn't seem to be a reedsolo.version attribute so i'm getting these version numbers from the pip freeze command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant