CommPy icon indicating copy to clipboard operation
CommPy copied to clipboard

Warning messages in tests

Open londumas opened this issue 5 years ago • 1 comments
trafficstars

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

londumas avatar Nov 10 '20 10:11 londumas

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

adeeb10abbas avatar Jan 09 '21 16:01 adeeb10abbas