From 170e3c2a37de9b52aa32c175e67089478c018574 Mon Sep 17 00:00:00 2001 From: Callum Rollo Date: Wed, 9 Aug 2023 09:00:14 +0200 Subject: [PATCH] remove xarray dependency --- erddapy/erddapy.py | 3 +-- requirements-dev.txt | 1 + requirements.txt | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/erddapy/erddapy.py b/erddapy/erddapy.py index ed73a03..b896fd9 100644 --- a/erddapy/erddapy.py +++ b/erddapy/erddapy.py @@ -4,7 +4,6 @@ from typing import Dict, List, Optional, Tuple, Union import pandas as pd -import xarray as xr from erddapy.core.griddap import ( _griddap_check_constraints, @@ -372,7 +371,7 @@ def to_xarray( self, requests_kwargs: Optional[Dict] = None, **kw, - ) -> "xr.Dataset": + ): """Load the data request into a xarray.Dataset. Accepts any `xr.open_dataset` keyword arguments. diff --git a/requirements-dev.txt b/requirements-dev.txt index 9bc150b..660dcd8 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -23,3 +23,4 @@ twine types-pytz types-requests wheel +xarray diff --git a/requirements.txt b/requirements.txt index 758a5aa..5ac97ab 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,3 @@ httpx pandas>=0.25.2,<3 pytz -xarray