Update ehs.py

This commit is contained in:
Junzi Sun 2018-03-13 12:08:10 +01:00 committed by GitHub
parent 441cd27761
commit 3073187d24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1002,9 +1002,9 @@ def BDS(msg):
elif sum(isBDS) == 1: elif sum(isBDS) == 1:
return BDS[isBDS.index(True)] return BDS[isBDS.index(True)]
else: 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): def Vxy(V, angle):
Vx = V*np.sin(np.deg2rad(angle)) Vx = V*np.sin(np.deg2rad(angle))
Vy = V*np.cos(np.deg2rad(angle)) Vy = V*np.cos(np.deg2rad(angle))