Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
Leah Wasser committed Mar 26, 2020
1 parent d9ff661 commit f8688e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 2 additions & 5 deletions earthpy/clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
"""

import pandas as pd
import geopandas as gpd


# @deprecate
def _clip_points(shp, clip_obj):
Expand Down Expand Up @@ -69,7 +66,7 @@ def clip_shp(shp, clip_obj):
Please use the clip() function in GeoPandas instead.
"""
raise Warning(
"clip_shp is deprecated. Use the clip() function in "
"GeoPandas. Exiting..."
"clip_shp is deprecated in earthpy and has been moved to Geopandas. "
"Please use the Geopandas clip() function. Exiting..."
)
sys.exit()
4 changes: 1 addition & 3 deletions earthpy/tests/test_clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ def multi_point(point_gdf):


def test_warning_main_clip_function(point_gdf, single_rectangle_gdf):
with pytest.raises(
Warning, match="clip_shp is deprecated. Use the clip()"
):
with pytest.raises(Warning, match="clip_shp is deprecated in earthpy"):
cl.clip_shp(point_gdf, single_rectangle_gdf)


Expand Down

0 comments on commit f8688e7

Please sign in to comment.