def test_brunt_vaisala_period(): """Test Brunt-Vaisala period function.""" truth = [[540.24223556, 441.10593821, 360.16149037, 483.20734521], [542.10193894, 443.38165033, 627.03634320, 625.96540075], [543.95528431, 771.88106656, np.nan, 543.02940230], [545.80233643, np.nan, np.nan, 385.94053328]] * units('s') bv_period = brunt_vaisala_period(bv_data()[0], bv_data()[1]) assert_almost_equal(bv_period, truth, 6)
def test_brunt_vaisala_period(): """Test Brunt-Vaisala period function.""" truth = [[540.24223556, 441.10593821, 360.16149037, 483.20734521], [542.10193894, 443.38165033, 627.03634320, 625.96540075], [543.95528431, 771.88106656, np.nan, 543.02940230], [545.80233643, np.nan, np.nan, 385.94053328]] * units('s') bv_period = brunt_vaisala_period(bv_data()[0], bv_data()[1]) assert_almost_equal(bv_period, truth, 6)