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
7 changes: 3 additions & 4 deletions aeon/datasets/monster_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def load_monster_dataset_names() -> list[str]:
list of str
A list of available Monster dataset names.
"""
_check_soft_dependencies("huggingface-hub")
_check_soft_dependencies("huggingface_hub")
from huggingface_hub import list_datasets

datasets = list_datasets(author=ORG_ID)
Expand Down Expand Up @@ -87,9 +87,8 @@ def load_monster_dataset(
Time Series Evaluation Repository. arXiv preprint arXiv:2502.15122.

"""
_check_soft_dependencies("huggingface-hub")
_check_soft_dependencies("huggingface_hub")
from huggingface_hub import hf_hub_download
from huggingface_hub.utils import HfHubDownloadError

repo_id = f"{ORG_ID}/{dataset_name}"

Expand All @@ -106,7 +105,7 @@ def load_monster_dataset(
label_path = hf_hub_download(
repo_id=repo_id, filename=label_filename, repo_type="dataset"
)
except HfHubDownloadError:
except Exception:
label_filename = f"{dataset_name}_y.npy"
label_path = hf_hub_download(
repo_id=repo_id, filename=label_filename, repo_type="dataset"
Expand Down
Loading