Skip to content
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

Bug: "ERROR: LoadError: InexactError: trunc(Int32, 2.172351299e9)" #11

Closed
MilesCranmer opened this issue Oct 8, 2020 · 1 comment
Closed
Labels
bug Something isn't working implemented This issue was fixed and/or implemented.

Comments

@MilesCranmer
Copy link
Owner

MilesCranmer commented Oct 8, 2020

I saw this bug this morning and it is now solved in 0.3.18.

This bug is when PySR tries to calculate the age of an equation. It seems that the offset I am using for "birthdate" of an equation, equal to 1e3*(time() - 1.6e9), and put into an Integer variable (so there is millisecond precision between equations), has actually now maxed out 32-bit integers. I have changed the precision to 64-bit and this issue is fixed.

I'm sorry for this bug; please update your binaries when you use PySR next, with:

pip install --upgrade pysr
@MilesCranmer MilesCranmer added bug Something isn't working implemented This issue was fixed and/or implemented. labels Oct 8, 2020
@MilesCranmer MilesCranmer pinned this issue Oct 8, 2020
@anicola
Copy link

anicola commented Oct 8, 2020

Haha awesome! Thanks a lot @MilesCranmer! I was just trying to figure out where this came from :-)

@MilesCranmer MilesCranmer unpinned this issue Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working implemented This issue was fixed and/or implemented.
Projects
None yet
Development

No branches or pull requests

2 participants