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

Warning messages in tests #93

Open
londumas opened this issue Nov 10, 2020 · 1 comment
Open

Warning messages in tests #93

londumas opened this issue Nov 10, 2020 · 1 comment

Comments

@londumas
Copy link

Unittests features few warning messages, it would be good to fix them.

<me>/CommPy$ python commpy/tests/test_*
...<me>/CommPy/commpy/links.py:324: ComplexWarning: Casting complex values to real discards the imaginary part
  received_msg[receive_size * i:receive_size * (i + 1)] = \
.<me>/CommPy/commpy/modulation.py:633: RuntimeWarning: divide by zero encountered in true_divide
  return -LLR / (2 * noise_var)
.................................................<me>/CommPy/commpy/channels.py:239: RuntimeWarning: divide by zero encountered in long_scalars
  return absolute(self.fading_param[0]) ** 2 / absolute(self.fading_param[1])
<me>/CommPy/commpy/channels.py:239: RuntimeWarning: divide by zero encountered in double_scalars
  return absolute(self.fading_param[0]) ** 2 / absolute(self.fading_param[1])
...
----------------------------------------------------------------------
Ran 56 tests in 257.543s

OK
@adeeb10abbas
Copy link

Can you provide more information about your setup? What versions of things are you using?

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

2 participants