Skip to content

Commit

Permalink
Changes for new name plot_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
FloraSauerbronn committed Sep 2, 2024
1 parent 3963902 commit 3569d6f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions gliderpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
"GliderDataFetcher",
"plot_track",
"plot_transect",
"plot_cast",
]
2 changes: 1 addition & 1 deletion gliderpy/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def plot_transect(


@register_dataframe_method
def plot_ctd(
def plot_cast(
df: pd.DataFrame,
profile_number: int,
var: str,
Expand Down
File renamed without changes
8 changes: 4 additions & 4 deletions tests/test_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import pytest

from gliderpy.fetchers import GliderDataFetcher
from gliderpy.plotting import plot_ctd, plot_track, plot_transect
from gliderpy.plotting import plot_cast, plot_track, plot_transect

root = Path(__file__).parent

Expand Down Expand Up @@ -76,7 +76,7 @@ def test_plot_transect_size(glider_data):


@pytest.mark.mpl_image_compare(baseline_dir=root.joinpath("baseline/"))
def test_plot_ctd(glider_data):
"""Test plot_ctd accessor."""
fig, ax = plot_ctd(glider_data, 0, var="temperature", color="blue")
def test_plot_cast(glider_data):
"""Test plot_cast accessor."""
fig, ax = plot_cast(glider_data, 0, var="temperature", color="blue")
return fig

0 comments on commit 3569d6f

Please sign in to comment.