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?
Within PINT we currently need to be able to hash individual QuadPrecision values (for data integrity checks) and save arrays to
npzfiles for rapid access. I don't think either of those currently work:fails (while
hash(np.float128(2))works using the nativenumpytype).And:
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?