Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit ffb9bdc

Browse files
committedFeb 7, 2017
fix 2 bugs: the updated max_error_weight was not tested + add->union
1 parent 375d4ee commit ffb9bdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/sage/coding/linear_code.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4582,8 +4582,8 @@ def _build_lookup_table(self):
45824582
self._decoder_type.add("bounded_distance")
45834583
# Update decoder types depending on whether we are decoding beyond d/2
45844584
if self._code_minimum_distance:
4585-
if t == (self._code_minimum_distance-1)//2:
4586-
self._decoder_type.add("minimum-distance", "always-succeed")
4585+
if self._maximum_error_weight == (self._code_minimum_distance-1)//2:
4586+
self._decoder_type.union({"minimum-distance","always-succeed"})
45874587
else:
45884588
# then t > (d-1)/2
45894589
self._decoder_type.add("might-error")

0 commit comments

Comments
 (0)
This repository has been archived.