Skip to content

MAINT: avoid axis=None and s is not None in test_{fftn,ifftn} - #297

Merged
asmeurer merged 1 commit into
data-apis:masterfrom
ev-br:fftn_axes_s
Nov 14, 2024
Merged

asmeurer merged 1 commit into
data-apis:masterfrom
ev-br:fftn_axes_s

Conversation

@ev-br

@ev-br ev-br commented Nov 13, 2024

Copy link
Copy Markdown
Member

closes #230

@asmeurer

Copy link
Copy Markdown
Member

Comment thread array_api_tests/test_fft.py Outdated
s_strat = st.none() | s_strat
s = data.draw(s_strat, label="s")

if axes is None and s is not None:

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.

It's better to just tell hypothesis to skip this case, like

assume(axis is not None or s is not None)

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.

Nice, thanks! Updated to the suggestion.

@asmeurer
asmeurer merged commit 4bbe6be into data-apis:master Nov 14, 2024
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.

Deprecation warnings from numpy fft

2 participants