assert multiplier >= 0
if (period_min == period_max) and (min_inter_symbol_distance == 0):
raise ValueError("If (period_min == period_max) a non-zero",
- "inter-symbol distance MUST be specified")
+ "min_inter_symbol_distance MUST be specified")
symbol_distance = 2 * (period_max - period_min)
if symbol_distance == 0:
distances.append(self.symbol_to_distance("EOM"))
- # Since the Morse signals are encoded in the distance between calls, an
- # extra call is needed in order for receiver actually get the EOM and
- # see that the transmission has terminated.
+ # Since the Morse symbols are encoded in the distance between periods,
+ # an extra pulse is needed in order for the receiver to actually get
+ # the EOM and see that the transmission has terminated.
distances.append(0)
return distances