diff options
author | pux <pux@pux.dom> | 2021-03-22 01:16:12 +0100 |
---|---|---|
committer | pux <pux@pux.dom> | 2021-03-22 01:16:12 +0100 |
commit | c041e3f92836d4d865ee43b33a32314f02214516 (patch) | |
tree | b51fdb44057ce6885bff2723dce945ec3b96742a | |
parent | 08ff952636ea40303e0aed293d5724ba0349a359 (diff) | |
download | calctenna-c041e3f92836d4d865ee43b33a32314f02214516.tar.gz calctenna-c041e3f92836d4d865ee43b33a32314f02214516.tar.bz2 calctenna-c041e3f92836d4d865ee43b33a32314f02214516.zip |
cosmetic/hz
-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 |