From 3073187d248695198ec67ea590d8789db29a1b79 Mon Sep 17 00:00:00 2001 From: Junzi Sun Date: Tue, 13 Mar 2018 12:08:10 +0100 Subject: [PATCH] Update ehs.py --- pyModeS/decoder/ehs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyModeS/decoder/ehs.py b/pyModeS/decoder/ehs.py index fc67dd2..a8dc26e 100644 --- a/pyModeS/decoder/ehs.py +++ b/pyModeS/decoder/ehs.py @@ -1002,9 +1002,9 @@ def BDS(msg): elif sum(isBDS) == 1: return BDS[isBDS.index(True)] else: - return = [bds for (bds, i) in zip(BDS, isBDS) if i] + bds_ = [bds for (bds, i) in zip(BDS, isBDS) if i] + return ','.join(bds_) - def Vxy(V, angle): Vx = V*np.sin(np.deg2rad(angle)) Vy = V*np.cos(np.deg2rad(angle))