Closed joshuacwnewton closed 6 months ago
Thanks for this! Yeah, I think detecting the platform is overkill and would suggest just ignoring unconditionally.
LGTM. Please feel free to add your name, affiliation and ORCID to https://github.com/nipy/nibabel/blob/master/.zenodo.json in order to be credited as an author on future releases.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 92.27%. Comparing base (
0e925ab
) to head (50dd737
).:exclamation: Current head 50dd737 differs from pull request most recent head 2978ee8. Consider uploading reports for the commit 2978ee8 to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
LGTM. Please feel free to add your name, affiliation and ORCID to https://github.com/nipy/nibabel/blob/master/.zenodo.json in order to be credited as an author on future releases.
My apologies for not understanding, but should I edit this file in the context of this PR? Or, separately?
(Looking at the history of this file, many of the edits appear to be authored by yourself, hence my confusion.)
{
"affiliation": "Polytechnique Montréal, Montréal, CA",
"name": "Newton, Joshua",
"orcid": "0009-0005-6963-3812"
},
I'm listed as the author because we have a script to reorder them (and I do also add them sometimes).
Please go ahead and add it yourself in this PR.
Description
This PR filters an upstream warning regarding broken support for
np.longdouble
, raised bynp.finfo(np.longdouble)
whennumpy>=1.25
is used on WSL1.NB: The context in which
type_info
is called onnp.longdouble
is here:https://github.com/nipy/nibabel/blob/0e925abb15e2dfbeecaaca4e7c2479b9d3e2cec0/nibabel/casting.py#L664-L670
https://github.com/nipy/nibabel/blob/0e925abb15e2dfbeecaaca4e7c2479b9d3e2cec0/nibabel/casting.py#L685
Given that
nibabel
already tries to avoidnp.longdouble
on Windows, I think it should be fine to filter this warning?Notes:
uname
is a bit overkill. :sweat_smile:~ EDIT: Removed.Related issues/PRs
Fixes #1309.