projects
/
SaveMySugar
/
python3-savemysugar.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be2f5f3
)
MorseDistanceModulator.py: be more precise in an error message
author
Antonio Ospite <ao2@ao2.it>
Sun, 3 Jan 2016 17:46:21 +0000
(18:46 +0100)
committer
Antonio Ospite <ao2@ao2.it>
Mon, 4 Jan 2016 09:48:26 +0000
(10:48 +0100)
src/savemysugar/MorseDistanceModulator.py
patch
|
blob
|
history
diff --git
a/src/savemysugar/MorseDistanceModulator.py
b/src/savemysugar/MorseDistanceModulator.py
index
417c5f9
..
1f78382
100755
(executable)
--- a/
src/savemysugar/MorseDistanceModulator.py
+++ b/
src/savemysugar/MorseDistanceModulator.py
@@
-34,7
+34,7
@@
class SymbolTime(object):
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: