Skip to content

Commit

Permalink
MNT: Fix example for xarray 0.13.0
Browse files Browse the repository at this point in the history
inplace has been removed in favor of assignment.
  • Loading branch information
dopplershift committed Sep 19, 2019
1 parent d1595e1 commit de54647
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tutorials/xarray_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@
'v-component_of_wind_isobaric'])

# To rename variables, supply a dictionary between old and new names to the rename method
data.rename({
data = data.rename({
'Vertical_velocity_pressure_isobaric': 'omega',
'Relative_humidity_isobaric': 'relative_humidity',
'Temperature_isobaric': 'temperature',
'u-component_of_wind_isobaric': 'u',
'v-component_of_wind_isobaric': 'v',
'Geopotential_height_isobaric': 'height'
}, inplace=True)
})

#########################################################################
# Units
Expand Down

0 comments on commit de54647

Please sign in to comment.