Skip to content

Commit

Permalink
Merge pull request #18 from NCAR/bump_new_release
Browse files Browse the repository at this point in the history
Bumped version for new release and removed deprecated functions from …
  • Loading branch information
erogluorhan authored Jul 30, 2020
2 parents ea31609 + 05f9503 commit 8e394d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 40 deletions.
2 changes: 1 addition & 1 deletion src/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1"
__version__ = "2020.7.30.1"
39 changes: 0 additions & 39 deletions src/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,42 +686,3 @@ def set_vector_density(data, minDistance=0):
ds = data.isel(lat=slice(None, None, lat_every), lon=slice(None, None, lon_every))

return ds


###############################################################################
#
# The following functions are deprecated and should eventually be removed
#
###############################################################################


def nclize_axis(ax, minor_per_major=3):
"""
Utility function to make plots look like NCL plots
Deprecated, use `add_major_minor_ticks` instead
"""
import warnings
warnings.simplefilter('always', DeprecationWarning)
warnings.warn('geocat.viz.util.nclize_axis: This function has been '
'deprecated, please use geocat.viz.util.add_major_minor_ticks'
' instead.', DeprecationWarning, stacklevel=2)
warnings.filters.pop(0)

add_major_minor_ticks(ax, x_minor_per_major=minor_per_major, y_minor_per_major=minor_per_major)


def make_byr_cmap():
"""
Define the byr colormap
Note: this will be replaced with cmaps.BlueYellowRed
"""
from . import cmaps

import warnings
warnings.simplefilter('always', DeprecationWarning)
warnings.warn('geocat.viz.util.make_byr_cmap: This function has been '
'deprecated, please use geocat.viz.cmaps.BlueYellowRed '
'instead.', DeprecationWarning, stacklevel=2)
warnings.filters.pop(0)

return cmaps.BlueYellowRed

0 comments on commit 8e394d3

Please sign in to comment.