[decode_real8] avoid passing signature to keep mypy happy
This commit is contained in:
parent
a67f9036b2
commit
9e6f5a3365
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ def decode_real8(nums: NDArray[numpy.uint64]) -> NDArray[numpy.float64]:
|
||||||
exp = (nums >> 56) & 0x7f
|
exp = (nums >> 56) & 0x7f
|
||||||
mant = (nums & 0x00ff_ffff_ffff_ffff).astype(numpy.float64)
|
mant = (nums & 0x00ff_ffff_ffff_ffff).astype(numpy.float64)
|
||||||
mant[neg != 0] *= -1
|
mant[neg != 0] *= -1
|
||||||
return numpy.ldexp(mant, 4 * (exp - 64) - 56, signature=(float, int, float))
|
return numpy.ldexp(mant, 4 * (exp.astype(numpy.int64) - 64) - 56)
|
||||||
|
|
||||||
|
|
||||||
def parse_real8(data: bytes) -> NDArray[numpy.float64]:
|
def parse_real8(data: bytes) -> NDArray[numpy.float64]:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue