Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Mar 6, 2024
1 parent 3ea3675 commit a9c2e42
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gliderpy/fetchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def query( # noqa: PLR0913
info_urls = [
self.fetcher.get_info_url(
dataset_id=dataset_id,
response="html",
response="html",
)
for dataset_id in datasets["Dataset ID"]
]
Expand Down
4 changes: 3 additions & 1 deletion gliderpy/plotters.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
if TYPE_CHECKING:
import pandas as pd


def plot_track(df: pd.DataFrame) -> tuple(plt.Figure, plt.Axes):
"""Plot a track of glider path coloured by temperature.
Expand All @@ -41,7 +42,8 @@ def plot_track(df: pd.DataFrame) -> tuple(plt.Figure, plt.Axes):

def plot_transect(
df: pd.DataFrame,
var: str, **kw: dict,
var: str,
**kw: dict,
) -> tuple(plt.Figure, plt.Axes):
"""Make a scatter plot of depth vs time coloured by a user defined
variable.
Expand Down
3 changes: 1 addition & 2 deletions tests/test_fetchers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Test Fetchers."""


import pytest

from gliderpy.fetchers import GliderDataFetcher
Expand All @@ -10,7 +9,7 @@
@pytest.fixture()
@pytest.mark.web()
def glider_grab():
""""Create the basic query object for testing."""
"""Create the basic query object for testing."""
g = GliderDataFetcher()
g.dataset_id = "whoi_406-20160902T1700"
return g
Expand Down

0 comments on commit a9c2e42

Please sign in to comment.