diff options
author | pux <pux@pux.dom> | 2021-03-21 20:07:16 +0100 |
---|---|---|
committer | pux <pux@pux.dom> | 2021-03-21 20:07:16 +0100 |
commit | 27cefd13f48384ce88bb60ee4b59e6f4189508cc (patch) | |
tree | 18f5404de6aeac04388e5c66395fe8438e25c08b | |
parent | e8d6ecc0fe024dd93ff991030ba4a5568a45d0d2 (diff) | |
download | calctenna-27cefd13f48384ce88bb60ee4b59e6f4189508cc.tar.gz calctenna-27cefd13f48384ce88bb60ee4b59e6f4189508cc.tar.bz2 calctenna-27cefd13f48384ce88bb60ee4b59e6f4189508cc.zip |
whoops
-rwxr-xr-x | calctenna.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/calctenna.py b/calctenna.py index 83f6ff3..8bf9bb3 100755 --- a/calctenna.py +++ b/calctenna.py @@ -12,7 +12,7 @@ import sys class Tests(unittest.TestCase): def test_calc(self): antenna_data = AntennaData(100e6, 0.951) - antenna_data = calc(antenna_data) + calc(antenna_data) self.assertEqual(antenna_data.dipole_leg_length, 0.7127565688949999) class AntennaData(): @@ -91,7 +91,6 @@ def calc(antenna_data): antenna_data.wavelength_4 = antenna_data.wavelength/4 antenna_data.dipole_leg_length = antenna_data.wavelength_4 \ * float(antenna_data.velocity_factor) - return antenna_data if __name__ == '__main__': args = run_argparse() @@ -104,7 +103,7 @@ if __name__ == '__main__': exit() antenna_data = AntennaData(args.frequency, args.velocity_factor) - antenna_data = calc(antenna_data) + calc(antenna_data) if not args.quiet: print("Desired Frequency: " + str(antenna_data.frequency) + " Hz") |