Skip to content

Commit

Permalink
codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
wx4stg committed Aug 9, 2023
1 parent e035adb commit be71346
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/calc/test_indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,16 @@ def test_bunkers_motion():
6.90054376] * units('m/s')
assert_almost_equal(motion.flatten(), truth, 8)


def test_bunkers_motion_with_nans():
"""Test Bunkers storm motion with observed sounding."""
data = get_upper_air_data(datetime(2016, 5, 22, 0), 'DDC')
data['u_wind'][24:26] = np.nan
data['v_wind'][24:26] = np.nan
u_with_nan = data['u_wind']
u_with_nan[24:26] = np.nan
v_with_nan = data['v_wind']
v_with_nan[24:26] = np.nan
motion = concatenate(bunkers_storm_motion(data['pressure'],
data['u_wind'], data['v_wind'],
u_with_nan, v_with_nan,
data['height']))
truth = [2.09232447, 0.97612357, 11.25513401, 12.85227283, 6.67372924,
6.9141982] * units('m/s')
Expand Down

0 comments on commit be71346

Please sign in to comment.