From d535fd05f24bc5810b2717f16c85f85522b7ef02 Mon Sep 17 00:00:00 2001 From: Malcolm White Date: Mon, 30 Jan 2023 12:00:56 -0500 Subject: [PATCH] Change DTYPE_BOOL from np.bool to np.bool_ --- .gitignore | 6 ++++++ pykonal/__version__.py | 2 +- pykonal/constants.pyx | 2 +- setup.py | 5 +++-- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 435dada..5657e6c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,9 @@ jupyter/.ipynb_checkpoints scripts/eq_loc/test_data *.log +*.cpp +*.c +build +dist +pykonal.egg-info +pykonal/__pycache__ diff --git a/pykonal/__version__.py b/pykonal/__version__.py index ec8290e..1223567 100644 --- a/pykonal/__version__.py +++ b/pykonal/__version__.py @@ -1,7 +1,7 @@ __major_version__ = 0 __minor_version__ = 3 __patch__ = 2 -__release__ = "b3" +__release__ = "b4" __version_tuple__ = ( __major_version__, __minor_version__, diff --git a/pykonal/constants.pyx b/pykonal/constants.pyx index 24f6d25..2ac81ea 100644 --- a/pykonal/constants.pyx +++ b/pykonal/constants.pyx @@ -6,6 +6,6 @@ import numpy as np DTYPE_REAL = np.float64 DTYPE_UINT = np.uint32 DTYPE_INT = np.int32 -DTYPE_BOOL = np.bool +DTYPE_BOOL = np.bool_ EARTH_RADIUS = 6371. diff --git a/setup.py b/setup.py index 847f681..a5fcca8 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,8 @@ import io import numpy as np import os -from distutils.core import setup +#from distutils.core import setup +from setuptools import setup from Cython.Build import cythonize @@ -12,7 +13,7 @@ name = "pykonal" description = "Solve the Eikonal equation in 3D Cartesian or spherical coordinates." url = "https://github.com/malcolmw/pykonal" -email = "malcolm.white@.usc.edu" +email = "malcolmw@mit.edu" author = "Malcolm C. A. White" requires_python = ">=3" packages = ["pykonal"]