Skip to content

Commit

Permalink
Style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SorooshMani-NOAA committed Mar 24, 2023
1 parent 3bc58c4 commit e6b777d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions stormevents/nhc/track.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,12 +584,9 @@ def atcf(self, advisory: ATCF_Advisory = None) -> DataFrame:
atcf["background_pressure"] = atcf["background_pressure"].astype(int)
atcf["central_pressure"] = atcf["central_pressure"].astype(int)

press_cond_nobg = (
~atcf["central_pressure"].isna()
& (
(atcf["background_pressure"] <= atcf["central_pressure"])
| (atcf["background_pressure"].isna())
)
press_cond_nobg = ~atcf["central_pressure"].isna() & (
(atcf["background_pressure"] <= atcf["central_pressure"])
| (atcf["background_pressure"].isna())
)
atcf.loc[press_cond_nobg, "background_pressure"] = 1013

Expand Down

0 comments on commit e6b777d

Please sign in to comment.