Skip to content

Commit

Permalink
Fixes syntax and indentation in test for assign_latitude_longitide() …
Browse files Browse the repository at this point in the history
…DatasetAccessor
  • Loading branch information
DanielAdriaansen committed Jan 24, 2020
1 parent 8fd9883 commit 90df34f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_xarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,10 +853,10 @@ def test_assign_latitude_longitude_force_existing_dataarray(
lon.values, 3)

def test_assign_latitude_longitude_basic_dataset(test_coord_helper_da_yx,
test_coord_helper_da_latlon):
test_coord_helper_da_latlon):
"""Test assign_latitude_longitude in basic usage on Dataset"""
ds = test_coord_helper_da_yx.to_dataset(name='test').metpy.assign_latitude_longitude()
lat, lon = ds['test'].metpy.coordinates('latitude', 'longitude'(
lat, lon = ds['test'].metpy.coordinates('latitude', 'longitude')
np.testing.assert_array_almost_equal(test_coord_helper_da_latlon['latitude'].values,
lat.values, 3)
np.testing.assert_array_almost_equal(test_coord_helper_da_latlon['longitude'].values,
Expand Down

0 comments on commit 90df34f

Please sign in to comment.