Closed eSoares closed 3 years ago
Just re-run the tests on my machine and everything passes... Run particular test that failed (commpy.channelcoding.tests.test_convcode.TestConvCode.test_conv_encode_viterbi_decode) five times, a couple of the times failed (1 and 3 mismatched elements). Maybe is the randomness that once in a while, causes the failure?
I know that with the explicit seed, randomness should be controlled and not fail, but the experience indicates otherwise...
You're right. The seed()
instructions were not called accordingly. I moved them into each tests and the results looks consistant now. I'll merge the PR as soon as Travis confirms it.
Unwrapping from tuple back to np.array to be able to call .astype