@@ -812,20 +812,20 @@ def _perform_experiments_for_single_id(self, identifier, verbosity):
812
812
c = C .random_element ()
813
813
generate_c_time = time .clock () - start
814
814
y = Chan (c )
815
- decoding_failure = True
815
+ decoding_error = True
816
816
try :
817
817
start = time .clock ()
818
818
dec_y = D .decode_to_code (y )
819
819
decode_time = time .clock () - start
820
- decoding_error = False
820
+ decoding_failure = False
821
821
if "list-decoder" in D .decoder_type ():
822
- decoding_failure = (c != dec_y )
822
+ decoding_error = (c != dec_y )
823
823
else :
824
- decoding_failure = (c != dec_y )
824
+ decoding_error = (c != dec_y )
825
825
except DecodingError :
826
826
decode_time = time .clock () - start
827
827
dec_y = None #as decoding failed
828
- decoding_error = True
828
+ decoding_failure = True
829
829
data [identifier , i ] = (c , generate_c_time , y , dec_y , decode_time , decoding_error , decoding_failure )
830
830
831
831
#verbosity
@@ -1013,9 +1013,9 @@ def decoding_success_rate(self, target, identifier = None):
1013
1013
- ``target`` -- the operation whose success rate will be computed, can be
1014
1014
either:
1015
1015
1016
- - ``"error" ``, which will compute a ratio on the number of decoding attempts
1016
+ - ``"failure ``, which will compute a ratio on the number of decoding attempts
1017
1017
which returned a word, whichever word it was
1018
- - ``"failure "``, which will compute a ratio on the number of decoding attempts
1018
+ - ``"error "``, which will compute a ratio on the number of decoding attempts
1019
1019
which returned the original codeword
1020
1020
1021
1021
- ``identifier`` -- (default: ``None``) the identifier of the benchmark
0 commit comments