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

scipy functions in accelsearch don't support float128 #869

Open
matteobachetti opened this issue Jan 9, 2025 · 0 comments · May be fixed by #870
Open

scipy functions in accelsearch don't support float128 #869

matteobachetti opened this issue Jan 9, 2025 · 0 comments · May be fixed by #870
Labels
bug It's a bug! Unexpected or unwanted behavior. help wanted We need additional help with these issues!

Comments

@matteobachetti
Copy link
Member

Description of the Bug

Report by @giallix: when feeding _create_responses with z values that are float128, the function crashes with

File "(...)accelsearch.py", line 118, in _create_responses
    [SZs, CZs] = special.fresnel(Zks)
                 ^^^^^^^^^^^^^^^^^^^^
TypeError: ufunc 'fresnel' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

Steps/Code to Replicate the Bug

@giallix provided a data file to confirm

Expected Results

No crash

Actual Results

Crash

@matteobachetti matteobachetti added bug It's a bug! Unexpected or unwanted behavior. help wanted We need additional help with these issues! labels Jan 9, 2025
@matteobachetti matteobachetti linked a pull request Jan 9, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug! Unexpected or unwanted behavior. help wanted We need additional help with these issues!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant