diff --git a/.zenodo.json b/.zenodo.json index a30467ebe..553aba054 100644 --- a/.zenodo.json +++ b/.zenodo.json @@ -391,6 +391,11 @@ }, { "name": "freec84" + }, + { + "affiliation": "Polytechnique Montréal, Montréal, CA", + "name": "Newton, Joshua", + "orcid": "0009-0005-6963-3812" } ], "keywords": [ diff --git a/nibabel/casting.py b/nibabel/casting.py index 09015135f..77da57e40 100644 --- a/nibabel/casting.py +++ b/nibabel/casting.py @@ -274,7 +274,13 @@ def type_info(np_type): nexp=None, width=width, ) - info = np.finfo(dt) + # Mitigate warning from WSL1 when checking `np.longdouble` (#1309) + with warnings.catch_warnings(): + warnings.filterwarnings( + action='ignore', category=UserWarning, message='Signature.*numpy.longdouble' + ) + info = np.finfo(dt) + # Trust the standard IEEE types nmant, nexp = info.nmant, info.nexp ret = dict(