diff --git a/examples/Calculating Strain via Voxelization.ipynb b/examples/Calculating Strain via Voxelization.ipynb index c36a086..923e202 100644 --- a/examples/Calculating Strain via Voxelization.ipynb +++ b/examples/Calculating Strain via Voxelization.ipynb @@ -67,7 +67,9 @@ "\n", " match = re.match('^Lattice=\".*\"', header)\n", " boxstring = match.group(0)\n", - " boxes.append(np.array(str.split(boxstring[9:-1]), dtype=np.float).reshape((3, 3)).T)\n", + " boxes.append(\n", + " np.array(str.split(boxstring[9:-1]), dtype=np.float32).reshape((3, 3)).T\n", + " )\n", " ff.close()\n", "\n", "# find the average box\n", @@ -226,7 +228,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -240,7 +242,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.3" + "version": "3.10.10" }, "widgets": { "state": { diff --git a/examples/Visualizing 3D Voronoi and Voxelization.ipynb b/examples/Visualizing 3D Voronoi and Voxelization.ipynb index 79fa5d1..10de92f 100644 --- a/examples/Visualizing 3D Voronoi and Voxelization.ipynb +++ b/examples/Visualizing 3D Voronoi and Voxelization.ipynb @@ -210,7 +210,7 @@ "outputs": [], "source": [ "aq = freud.AABBQuery(box, positions)\n", - "voxel_neighbors = -np.ones(len(cubic_grid), dtype=np.int)\n", + "voxel_neighbors = -np.ones(len(cubic_grid), dtype=np.int32)\n", "for i, j, distance in aq.query(cubic_grid, {\"num_neighbors\": 1}):\n", " voxel_neighbors[i] = j" ] @@ -246,7 +246,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -260,7 +260,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.3" + "version": "3.10.10" } }, "nbformat": 4,