Skip to content

QuadPrecision(1).imag raises RuntimeError #204

@jorenham

Description

@jorenham

on the current main (d90519b):

>>> from numpy_quaddtype import *
>>> QuadPrecision(1).imag
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
Cell In[2], line 1
----> 1 QuadPrecision(1).imag

RuntimeError: Using legacy SETITEM with NULL array object is only supported for basic NumPy DTypes.

I expected it to return QuadPrecision(0.0), analogous to np.longdouble(1).imag

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions