aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpux <pux@pux.dom>2021-03-21 20:07:16 +0100
committerpux <pux@pux.dom>2021-03-21 20:07:16 +0100
commit27cefd13f48384ce88bb60ee4b59e6f4189508cc (patch)
tree18f5404de6aeac04388e5c66395fe8438e25c08b
parente8d6ecc0fe024dd93ff991030ba4a5568a45d0d2 (diff)
downloadcalctenna-27cefd13f48384ce88bb60ee4b59e6f4189508cc.tar.gz
calctenna-27cefd13f48384ce88bb60ee4b59e6f4189508cc.tar.bz2
calctenna-27cefd13f48384ce88bb60ee4b59e6f4189508cc.zip
whoops
-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