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

test_fft.py #196

Merged
merged 13 commits into from
Nov 10, 2023
Merged

test_fft.py #196

merged 13 commits into from
Nov 10, 2023

Conversation

honno
Copy link
Member

@honno honno commented Oct 6, 2023

WIP PR for FFT tests. Needs some refactoring and some more shape asserts. freq/shift tests can come in a seperate PR.

TODO:

@@ -470,3 +484,18 @@ def assert_array_elements(
assert xp.all(
out == expected
), f"{out_repr} not as expected {f_func}\n{out_repr}={out!r}\n{expected=}"


def _make_wrapped_assert_helper(assert_helper: Callable) -> Callable:
Copy link
Member Author

Choose a reason for hiding this comment

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

TODO: remove this now I've manually added __tracebackhide__

@rgommers
Copy link
Member

rgommers commented Nov 9, 2023

@honno how far off is this from getting merged you think?

@honno honno marked this pull request as ready for review November 10, 2023 16:34
@honno
Copy link
Member Author

honno commented Nov 10, 2023

@honno how far off is this from getting merged you think?

I'll just merge it, the tests are very thorough now (except there's no tests shift/freq which I can do in a follow-up PR). Some hacks and code I'd like to remove/refactor but good to just get this in—it doesn't seem to break anything!

Current failures are the same on master, something I'll have to investigate 👀

@honno honno merged commit 37bbb58 into data-apis:master Nov 10, 2023
@honno honno requested a review from asmeurer November 10, 2023 16:41
@honno honno deleted the test-fft branch February 28, 2024 13:21
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.

2 participants