-
-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Milestone
Description
Within PINT we currently need to be able to hash individual QuadPrecision values (for data integrity checks) and save arrays to npz files for rapid access. I don't think either of those currently work:
import numpy as np
from numpy_quaddtype import QuadPrecDType, QuadPrecision
hash(QuadPrecision(np.float32(2)))
fails (while hash(np.float128(2)) works using the native numpy type).
And:
d = np.array([1, 2, 3], dtype=QuadPrecDType)
np.savez('test.npz',d=d)
fails while the same for d=np.array([1,2,3],dtype=np.float128) works.
My hope is that these are both relatively easy fixes?
Metadata
Metadata
Assignees
Labels
No labels