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

Commit

Permalink
Need to get the result that union returns
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementPernet committed Feb 7, 2017
1 parent ffb9bdc commit 6f8bf3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/coding/linear_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -4583,7 +4583,7 @@ def _build_lookup_table(self):
# Update decoder types depending on whether we are decoding beyond d/2
if self._code_minimum_distance:
if self._maximum_error_weight == (self._code_minimum_distance-1)//2:
self._decoder_type.union({"minimum-distance","always-succeed"})
self._decoder_type = self._decoder_type.union({"minimum-distance","always-succeed"})
else:
# then t > (d-1)/2
self._decoder_type.add("might-error")
Expand Down

0 comments on commit 6f8bf3c

Please sign in to comment.