Skip to content
Merged
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
9 changes: 3 additions & 6 deletions bluemath_tk/config/paths.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import os.path as op
from typing import Dict

from siphon.catalog import TDSCatalog

Expand Down Expand Up @@ -99,20 +98,18 @@ def get_thredds_catalog() -> TDSCatalog:
Siphon TDSCatalog object containing the catalog information.
"""

catalog_url = (
"https://geoocean.unican.es/thredds/catalog/catalog.html"
)
catalog_url = "https://geoocean.unican.es/thredds/catalog/catalog.html"

return TDSCatalog(catalog_url)


def get_catalog_folders() -> Dict[str, str]:
def get_catalog_folders() -> dict[str, str]:
"""
Get a dictionary of folder names and their links from the first level of the catalog.

Returns
-------
Dict[str, str]
dict[str, str]
Dictionary with folder names as keys and their catalog URLs as values.
"""

Expand Down
Loading