From c041e3f92836d4d865ee43b33a32314f02214516 Mon Sep 17 00:00:00 2001 From: pux Date: Mon, 22 Mar 2021 01:16:12 +0100 Subject: cosmetic/hz --- calctenna.py | 8 ++++---- 1 file 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 -- cgit v1.2.2-1-g5e49