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

replace clock from time #886

Closed
sbenthall opened this issue Dec 17, 2020 · 1 comment · Fixed by #887
Closed

replace clock from time #886

sbenthall opened this issue Dec 17, 2020 · 1 comment · Fixed by #887
Milestone

Comments

@sbenthall
Copy link
Contributor

Many places in the library use

from time import clock

This has been deprecated since Python 3.3 and officially removed as of Python 3.8
Since Dolo requires 3.8, getting the library ready for 3.8 compatibility is important for maintaining joint environments.

The functions are recommended instead:

https://docs.python.org/3/library/time.html#time.process_time

https://docs.python.org/3/library/time.html#time.perf_counter

@sbenthall sbenthall added this to the 1.0.0 milestone Dec 17, 2020
@sbenthall
Copy link
Contributor Author

Maybe this is just in a couple example notebooks....

examples/Gentle-Intro/Gentle-Intro-To-HARK.py

examples/ConsIndShockModel/IndShockConsumerType.ipynb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant