-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'peeling_union_find_with_boundaries' into l4_dev
# Conflicts: # src_python/ldpc/bplsd_decoder/_bplsd_decoder.pxd
- Loading branch information
Showing
23 changed files
with
588 additions
and
670 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import pytest | ||
import numpy as np | ||
from ldpc.belief_find_decoder import BeliefFindDecoder | ||
from ldpc.codes import hamming_code, rep_code, ring_code | ||
|
||
def test_peeling_input(): | ||
|
||
pcm = rep_code(3) | ||
decoder = BeliefFindDecoder(pcm, error_rate = 0.1, uf_method="peeling") | ||
|
||
pcm = ring_code(3) | ||
decoder = BeliefFindDecoder(pcm, error_rate = 0.1, uf_method="peeling") | ||
|
||
pcm = hamming_code(3) | ||
|
||
# decoder = BeliefFindDecoder(pcm, error_rate = 0.1, uf_method="peeling") | ||
|
||
with pytest.raises(ValueError): | ||
decoder = BeliefFindDecoder(pcm, error_rate = 0.1, uf_method="peeling") | ||
|
||
|
||
if __name__ == "__main__": | ||
test_peeling_input() | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.