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

[BUG] Sporadic failure in anomaly detection test #2225

Closed
TonyBagnall opened this issue Oct 18, 2024 · 0 comments · Fixed by #2232
Closed

[BUG] Sporadic failure in anomaly detection test #2225

TonyBagnall opened this issue Oct 18, 2024 · 0 comments · Fixed by #2232
Assignees
Labels
anomaly detection Anomaly detection package bug Something isn't working datasets Datasets and data loaders testing Testing related issue or pull request

Comments

@TonyBagnall
Copy link
Contributor

Describe the bug

aeon/datasets/tests/test_tsad_datasets.py::test_helper_functions sporadic fails caused by writing to "local_data", need to use a tempfile, instead, e,g.

def test_base_deep_clusterer():
    """Test base deep clusterer."""
    with tempfile.TemporaryDirectory() as tmp:
        last_file_name = "temp"
        # create a dummy deep classifier

Steps/Code to reproduce the bug

run CI

Expected results

pass

Actual results

FAILED aeon/datasets/tests/test_tsad_datasets.py::test_helper_functions - OSError: Cannot save file into a non-existent directory: '/home/runner/work/aeon/aeon/aeon/datasets/local_data'

Versions

No response

@TonyBagnall TonyBagnall added bug Something isn't working testing Testing related issue or pull request anomaly detection Anomaly detection package labels Oct 18, 2024
@SebastianSchmidl SebastianSchmidl self-assigned this Oct 20, 2024
@SebastianSchmidl SebastianSchmidl added the datasets Datasets and data loaders label Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
anomaly detection Anomaly detection package bug Something isn't working datasets Datasets and data loaders testing Testing related issue or pull request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants