Skip to content

Commit 29b5b90

Browse files
author
Shyue Ping Ong
committed
Try to fix cython 3 problems.
1 parent ed09fe7 commit 29b5b90

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pymatgen/util/coord_cython.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def pbc_shortest_vectors(lattice, fcoords1, fcoords2, mask=None, return_d2=False
9191

9292
pbc = lattice.pbc
9393
cdef int n_pbc = sum(pbc)
94-
cdef int n_pbc_im = 3 ** n_pbc
94+
cdef int n_pbc_im = int(round(3 ** n_pbc))
9595

9696
cdef np.float_t[:, ::1] frac_im
9797
cdef int i, j, k, l, I, J

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
numpy==1.24.3
22
sympy==1.11.1
3-
requests==2.28.1
3+
requests==2.29.0
44
monty==2022.9.9
5-
ruamel.yaml==0.17.21
5+
ruamel.yaml==0.17.32
66
scipy==1.9.0
77
tabulate==0.9.0
88
matplotlib==3.5.2
99
palettable==3.3.0
1010
spglib==2.0.2
11-
pandas==2.0.1
11+
pandas==2.0.3
1212
networkx==2.8.8
1313
plotly==5.11.0
1414
beautifulsoup4==4.12.2
1515
uncertainties==3.1.7
16-
Cython==0.29.32
16+
Cython==3.0.0
1717
pybtex==0.24.0
1818
mp-api==0.33.3
1919
tqdm==4.65.0

0 commit comments

Comments
 (0)