Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring of Argo stores #425

Merged
merged 9 commits into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions argopy/data_fetchers/gdac_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from abc import ABC, abstractmethod
import warnings
import logging
import importlib

from ..utils.format import format_oneline
from ..options import OPTIONS, check_gdac_option
Expand All @@ -19,15 +18,6 @@

log = logging.getLogger("argopy.gdac.index")

# has_pyarrow = importlib.util.find_spec('pyarrow') is not None
# if has_pyarrow:
# from argopy.stores.argo_index_pa import indexstore_pyarrow as indexstore
# log.debug("Using pyarrow indexstore")
# else:
# from argopy.stores.argo_index_pd import indexstore_pandas as indexstore
# # warnings.warn("Consider installing pyarrow in order to improve performances when fetching GDAC data")
# log.debug("Using pandas indexstore")

access_points = ["wmo", "box"]
exit_formats = ["xarray"]
dataset_ids = ["phy", "bgc"] # First is default
Expand Down
33 changes: 19 additions & 14 deletions argopy/stores/__init__.py
Original file line number Diff line number Diff line change
@@ -1,30 +1,35 @@
# from .argo_index_deprec import indexstore, indexfilter_wmo, indexfilter_box
from .implementations.local import filestore
from .implementations.memory import memorystore
from .implementations.http import httpstore
from .implementations.http_erddap import httpstore_erddap
from .implementations.ftp import ftpstore
from .implementations.s3 import s3store
from .implementations.gdac import gdacfs

from .filesystems import argo_store_proto
from .filesystems import filestore, httpstore, memorystore, ftpstore, s3store, gdacfs
from .filesystems import httpstore_erddap, httpstore_erddap_auth
from .filesystems import has_distributed, distributed # noqa: F401
from .index.argo_index import ArgoIndex
from .float.argo_float import ArgoFloat

from .argo_index_pa import indexstore_pyarrow as indexstore_pa
from .argo_index_pd import indexstore_pandas as indexstore_pd
from .kerchunker import ArgoKerchunker

from .argo_index import ArgoIndex
from .float.argo_float import ArgoFloat
from .filesystems import has_distributed, distributed # noqa: F401
from .spec import ArgoStoreProto # noqa: F401
from .implementations.http_erddap import httpstore_erddap_auth # noqa: F401

from .index.implementations.index_pyarrow import (
indexstore as indexstore_pa,
) # noqa: F401
from .index.implementations.index_pandas import (
indexstore as indexstore_pd,
) # noqa: F401

from .kerchunker import ArgoKerchunker

#
__all__ = (
# Classes:
"ArgoIndex",
"ArgoFloat",
"indexstore_pa",
"indexstore_pd",
"filestore",
"httpstore",
"httpstore_erddap",
"httpstore_erddap_auth",
"ftpstore",
"memorystore",
"s3store",
Expand Down
Loading
Loading