Skip to content

Commit

Permalink
Remove references to numpy.int in favor of int
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentRDC committed Jan 3, 2023
1 parent 06d246b commit 841c96d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crystals/tests/test_lattice.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_lattice_array_dtype():
"""Test that the data-type of array(Lattice(...)) is respected"""
arr = np.random.random(size=(3, 3))
lattice = Lattice(arr)
assert np.array(lattice, dtype=np.int32).dtype, np.int32
assert np.array(lattice, dtype=int).dtype, int


def test_lattice_frac_mesh():
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/indexing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ The list of ``peaks`` are peak positions in three-dimensional reciprocal space.
>>> lattice, hkls = index_dirax(peaks)
>>> lattice
< Lattice object with parameters 3.638Å, 3.638Å, 3.638Å, 90.00°, 90.00°, 90.00° >
>>> hkls.astype(np.int)
>>> hkls.astype(int)
array([[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
Expand Down

0 comments on commit 841c96d

Please sign in to comment.