Implemented projection; Added TODOs and fixed docstrings

This commit is contained in:
2022-11-04 22:05:16 +01:00
parent 01bc41b8c5
commit 2c16e2c2a3
5 changed files with 28 additions and 7 deletions

View File

@@ -35,7 +35,7 @@ class CheckParityTestCase(unittest.TestCase):
class GradientTestCase(unittest.TestCase):
"""Test case for the calculation of the gradient of the code-constraint-polynomial"""
"""Test case for the calculation of the gradient of the code-constraint-polynomial."""
def test_grad_h(self):
H = np.array([[1, 0, 0],
[0, 1, 0]])

View File

@@ -21,7 +21,7 @@ class CountBitErrorsTestCase(unittest.TestCase):
class NoiseAmpFromSNRTestCase(unittest.TestCase):
"""Test case for noise amplitude calculation"""
"""Test case for noise amplitude calculation."""
def test_get_noise_amp_from_SNR(self):
SNR1 = 0
SNR2 = 6