Skip to content

Fix scipy tests#7841

Merged
jsignell merged 1 commit intodask:mainfrom
jsignell:fix-scipy-tests
Jun 29, 2021
Merged

Fix scipy tests#7841
jsignell merged 1 commit intodask:mainfrom
jsignell:fix-scipy-tests

Conversation

@jsignell
Copy link
Copy Markdown
Member

@github-actions github-actions bot added the array label Jun 28, 2021
# The sums of observed and expected frequencies must match
a = np.random.random(size=30)
b = np.random.random(size=30)
b = a[::-1]
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This felt like the easiest way to make sure that they all match.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable - np.random.permutation should also work, but I don't think it provides any better coverage.

@jsignell jsignell merged commit 1797c2b into dask:main Jun 29, 2021
@jsignell jsignell deleted the fix-scipy-tests branch June 29, 2021 12:48
QuLogic pushed a commit to QuLogic/dask that referenced this pull request Jul 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Array stats tests failing on main

2 participants