code formatting

This commit is contained in:
Jakob Ketterl
2019-08-18 00:16:08 +02:00
parent 5fab3e3d36
commit 73102053dc
3 changed files with 11 additions and 13 deletions

View File

@ -195,10 +195,7 @@ class AprsParser(object):
comment = information[19:]
def decodeHeightGainDirectivity(comment):
res = {
"height": 2 ** int(comment[4]) * 10 * feetToMeters,
"gain": int(comment[5]),
}
res = {"height": 2 ** int(comment[4]) * 10 * feetToMeters, "gain": int(comment[5])}
directivity = int(comment[6])
if directivity == 0:
res["directivity"] = "omni"
@ -353,7 +350,7 @@ class MicEParser(object):
altitude = next((a for a in [altitude, insideAltitude] if a is not None), None)
return {
"fix": information[0] == ord("`") or information[0] == 0x1c,
"fix": information[0] == ord("`") or information[0] == 0x1C,
"lat": lat,
"lon": lon,
"comment": comment,