Repository navigation
Migrate tests/test_stomp.py to NumPy array comparisons - #1215
Conversation
|
Review these changes at https://app.gitnotebooks.com/stumpy-dev/stumpy/pull/1215 |
|
@karthiksenv is this ready for review? |
|
Not yet. The 24 focused tests passed on Windows and Ubuntu with JIT enabled and disabled. The full Ubuntu run was interrupted before it finished, while running |
|
This is ready now, Sean. The full Ubuntu run passed 2,363 tests with 32 skips in the JIT phase and 2,510 with 17 skips in the coverage phase. The existing RNG tests with the seed unset brought coverage to 100%, and the GitHub Tests workflow passed too. I've updated the checklist and marked the PR ready for review. Ray and pyFFTW were unavailable, and CUDA used the simulator. Codex helped with validation and this update. |
|
@karthiksenv Looks good. Thanks for the PR! |
|
Thanks for the opportunity to help with the STOMP tests, Sean. I appreciate your patience while validation wrapped up. |
Related to #1175. This follows Sean's request on #1212 to submit one test file per PR.
tests/test_stomp.pynow usesassert_allclosefor its 6 comparisons, withatol=1.5e-07, no explicitrtol, computed values first andcmp_/ref_names. The object-typed matrix profiles are converted tofloat64for numeric comparison, following the existing motif tests. Fixture values and non-comparison test logic are unchanged.All 24 tests passed on Windows and Ubuntu with Numba JIT enabled and disabled, using seed 1175 (four passing runs). Each run reported 21 existing warnings that STOMP is unsupported and provided for reference. Black and flake8 passed for the changed file.
Full Ubuntu validation of commit
be5d264961bf6b052d90f85ae05d8fe165ecfb6fcompleted with 2,363 passes and 32 skips in the JIT phase, then 2,510 passes and 17 skips in the coverage phase. Development setup, dependency checks, repository-wide Black, isort, flake8, docstring and fastmath checks passed. After the existing two RNG tests ran without the fixed seed and appended coverage, the repository report passed at 100% across 15,105 statements. Ray and pyFFTW were unavailable; CUDA used the simulator, with no physical GPU testing.The GitHub Tests workflow passed on this commit.
OpenAI Codex assisted with the migration, validation and PR text.
Pull Request Checklist
Below is a simple checklist but please do not hesitate to ask for assistance!
black(i.e.,python -m pip install blackorconda install -c conda-forge black)flake8(i.e.,python -m pip install flake8orconda install -c conda-forge flake8)pytest-cov(i.e.,python -m pip install pytest-covorconda install -c conda-forge pytest-cov)black --exclude=".*\.ipynb" --extend-exclude=".venv" --diff ./in the root stumpy directoryflake8 --extend-exclude=.venv ./in the root stumpy directory./setup.sh dev && ./test.shin the root stumpy directory and ensured that all tests are passing locallyPlease do not commit any code to avoid/circumvent a failing test and, instead, engage in a discussion (below) to determine the best course of action.
Only request a review after the checklist above is fully completed!