File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1958,14 +1958,14 @@ def decode_to_message(self, word_and_erasure_vector):
19581958 [word [i ] for i in range (len (word ))
19591959 if not erasure_vector [i ]])
19601960 C1_length = len (punctured_word )
1961- if C1_length == k :
1962- return self .connected_encoder ().unencode_nocheck (word )
19631961 C1_evaluation_points = [self .code ().evaluation_points ()[i ] for i in
19641962 range (n ) if erasure_vector [i ] != 1 ]
19651963 C1_column_multipliers = [self .code ().column_multipliers ()[i ] for i in
19661964 range (n ) if erasure_vector [i ] != 1 ]
19671965 C1 = GeneralizedReedSolomonCode (C1_evaluation_points , k ,
19681966 C1_column_multipliers )
1967+ if C1_length == k :
1968+ return C1 .unencode (punctured_word , nocheck = True )
19691969 return C1 .decode_to_message (punctured_word )
19701970
19711971 def decoding_radius (self , number_erasures ):
You can’t perform that action at this time.
0 commit comments