aboutsummaryrefslogtreecommitdiff
path: root/calctenna.py
diff options
context:
space:
mode:
Diffstat (limited to 'calctenna.py')
-rwxr-xr-xcalctenna.py5
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")
in each repos: see "about"-tab (if existing) for more details / README.
mailto contact at omeckman dot net
all timestamps in UTC (German winter time: UTC+01:00, summer time: UTC+02:00)
dark theme is a modded version of: https://gist.github.com/Yoplitein/f4b671a2ec70c9e743fa