aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcalctenna.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/calctenna.py b/calctenna.py
index c8668d0..03e75f4 100755
--- a/calctenna.py
+++ b/calctenna.py
@@ -16,8 +16,8 @@ class Tests(unittest.TestCase):
self.assertEqual(antenna_data.dipole_leg_length, 0.7127565688949999)
class AntennaData():
- def __init__(self, frequency, velocity_factor):
- self.frequency_hz = frequency
+ def __init__(self, frequency_hz, velocity_factor):
+ self.frequency_hz = frequency_hz
self.velocity_factor = velocity_factor
# fill me
self.wavelength_m = 0
@@ -60,9 +60,9 @@ def run_argparse():
return args
-def check_input(frequency, velocity_factor):
+def check_input(frequency_hz, velocity_factor):
try:
- f = float(frequency)
+ f = float(frequency_hz)
except:
print("Sorry, frequency input invalid or missing")
return False
in each repos: see "about"-tab (if existing) for more details / README.
mailto contact at omeckman dot net
all timestamps in UTC (German winter time: UTC+01:00, summer time: UTC+02:00)
dark theme is a modded version of: https://gist.github.com/Yoplitein/f4b671a2ec70c9e743fa