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

Deprecated dependencies and commands in 2022 #8

Open
rcarrascoc opened this issue Sep 27, 2022 · 0 comments
Open

Deprecated dependencies and commands in 2022 #8

rcarrascoc opened this issue Sep 27, 2022 · 0 comments

Comments

@rcarrascoc
Copy link

Hi there!

In 2022, there're some dependencies and commands are deprecated for Python 3.9 or later, here are some updates:

In treenode_helper.py you should change:
line 5: from numba import autjit -> from numba import jit
line 73 self.leaf = numpy.zeros(n_crit, dtype=numpy.int) -> self.leaf = numpy.zeros(n_crit, dtype=int)
line 75 self.child = numpy.zeros(8, dtype=numpy.int) -> self.child = numpy.zeros(8, dtype=int)
line 79 self.multipole = numpy.zeros(10, dtype=numpy.float) -> self.multipole = numpy.zeros(10, dtype=float)

In 04_tree_construction.ipyn you should change in class cell():
self.leaf = numpy.zeros(n_crit, dtype=numpy.int) -> self.leaf = numpy.zeros(n_crit, dtype=int)
self.child = numpy.zeros(8, dtype=numpy.int) -> self.child = numpy.zeros(8, dtype=int)
self.multipole = numpy.zeros(10, dtype=numpy.float) -> self.multipole = numpy.zeros(10, dtype=float)

In 06_treecode.ipynb you should change every clock() to time()

I hope it will be helpful for future readers

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

No branches or pull requests

1 participant