-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
numpy.uint64
ext_timestamp fail to split into correct ts, ns pairs
#190
Comments
This kind of calculation does not seem to be used very much (I looked for '% int(1e9)') in SAPPHiRE, only a few simulations and in time_deltas, but in both cases it appears that python ints are used, so that should not be an issue. |
numpy.uint64
ext_timestamp fail to split into correct ts, ns pairsnumpy.uint64
ext_timestamp fail to split into correct ts, ns pairs
@153957 : I removed It does bug me that this breaks when using I'd like to fix this by creating a But I just fixed it in |
For comparisons (uint64 == int) the newer numpy does not cast to float64, but when performing calculations (uint64 + int) it does convert the values to float64. |
See code below:
An
ext_timestamp
read from HDF5 isnumpy.uint64
with different math rules (appearantly) as compared toint
...This might break a lot of (all) code that transforms
ext_timestamp
intots, ns
pairs.(Fix: cast to
int
)The text was updated successfully, but these errors were encountered: