Skip to content

Commit

Permalink
minor bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sobester committed Feb 24, 2020
1 parent 97c7650 commit 4bc6fbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ADRpy/atmospheres.py
Expand Up @@ -736,7 +736,7 @@ def eas2tas(self, eas, altitude_m):
eas
Float or numpy array of floats. Equivalent airspeed (any unit,
returned TAS value will be in the same unit).abs
returned TAS value will be in the same unit).
altitude_m
Float. Flight altitude in metres.
Expand Down
2 changes: 1 addition & 1 deletion ADRpy/constraintanalysis.py
Expand Up @@ -1067,7 +1067,7 @@ def powerrequired(self, wingloadinglist_pa, tow_kg, feasibleonly=True):
trnspeed_mpstas = co.kts2mps(self.turnspeed_ktas)
if feasibleonly:
pw_trn_wpn = tw2pw(twreq['turnfeasible'], trnspeed_mpstas, self.etaprop_turn)
if all(np.isnan(pw_trn_wpn)):
if np.all(np.isnan(pw_trn_wpn)):
nanmsg = "All turns are infeasible for the given load factor, speed, and wing loadings."
warnings.warn(nanmsg, RuntimeWarning)
else:
Expand Down

0 comments on commit 4bc6fbe

Please sign in to comment.