Skip to content

Commit

Permalink
refactor: rename fetch measures_boundaries to antarctic_boundaries
Browse files Browse the repository at this point in the history
BREAKING CHANGE: make sure to update your code with the new function name!
  • Loading branch information
mdtanker committed Jun 5, 2024
1 parent 86be2e5 commit 65a845c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/datasets/antarctica/ice_boundaries.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"filepaths = []\n",
"for name in version_names:\n",
" filepaths.append(\n",
" fetch.measures_boundaries(\n",
" fetch.antarctic_boundaries(\n",
" version=name,\n",
" )\n",
" )"
Expand Down
2 changes: 1 addition & 1 deletion src/polartoolkit/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ def groundingline(
return fname


def measures_boundaries(
def antarctic_boundaries(
version: str,
) -> str:
"""
Expand Down
2 changes: 1 addition & 1 deletion src/polartoolkit/maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ def add_coast(
elif version == "measures-v2":
if no_coast is False:
gl = gpd.read_file(fetch.groundingline(version=version))
coast = gpd.read_file(fetch.measures_boundaries(version="Coastline"))
coast = gpd.read_file(fetch.antarctic_boundaries(version="Coastline"))
data = pd.concat([gl, coast])
elif no_coast is True:
data = fetch.groundingline(version=version)
Expand Down

0 comments on commit 65a845c

Please sign in to comment.