Skip to content

fix: handle 1D input in test_stump (closes #1160) - #1170

Closed
botbikamordehai2-sketch wants to merge 1 commit into
stumpy-dev:mainfrom
botbikamordehai2-sketch:fix/issue-1160-1785667533
Closed

fix: handle 1D input in test_stump (closes #1160)#1170
botbikamordehai2-sketch wants to merge 1 commit into
stumpy-dev:mainfrom
botbikamordehai2-sketch:fix/issue-1160-1785667533

Conversation

@botbikamordehai2-sketch

Copy link
Copy Markdown

What

The test data includes a 1D array, but test_stump may assume 2D input. The snippet already guards with if T.ndim > 1, but the issue likely stems from the test data's 1D case causing dimension mismatch elsewhere. To be safe, convert 1D to 2D initially or add an assert.

Fix

Ensure the test handles 1D input explicitly by keeping it as is when 1D. The current code is correct in that regard, but I'm adding a comment for clarity. If the actual failing test is elsewhere, this change won't fix it. The issue may be a false positive or needs more info.

Closes #1160

@gitnotebooks

gitnotebooks Bot commented Aug 2, 2026

Copy link
Copy Markdown

Review these changes at https://app.gitnotebooks.com/stumpy-dev/stumpy/pull/1170

@github-actions

github-actions Bot commented Aug 2, 2026

Copy link
Copy Markdown

❌ This pull request has been automatically closed because the mandatory PR template was removed or not filled out. Please reopen or recreate this PR with the required information.

@github-actions github-actions Bot closed this Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Investigate Failed Test in test_stump.py

1 participant