diff options
-rwxr-xr-x | calctenna.py | 8 |
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 |