diff options
Diffstat (limited to 'calctenna.py')
-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") |