Repository: NRL-Plasma-Physics-Division/turbopy (language: python)

Issue:
Deprecation warnings for using np.int, np.float 
## Issue
After running the tests on the development environment of turboPy, there were a number of warnings for using `np.int`, `np.float` for specifying types. As of NumPy 1.20, those aliases are considered deprecated. `int` and `float` can be used instead. One of the warnings is shown below.
```
DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`.   
To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe.   
When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision.   
If you wish to review your current use, check the release note link for additional information.  
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations  
self.num_points = np.int(self.num_points)
```



Discussion / hints:

Fix patch:
diff --git a/.travis.yml b/.travis.yml
index 6f4e33a..2b9d388 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,6 @@
 language: python
 python:
-    - 3.7
+    - 3.9
 install:
     - sudo apt update
     - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
diff --git a/README.md b/README.md
index 930db6c..5c77921 100644
--- a/README.md
+++ b/README.md
@@ -59,21 +59,21 @@ Also, we would appreciate it if you would cite turboPy. There are a few ways you
 
 If you used turboPy, please cite the specific version of the code that you used. We use Zenodo to create DOIs and archive our code. You can find the DOI for the version that you used on [our Zenodo page](https://doi.org/10.5281/zenodo.3973692)
 
-For example, a citation for version v2023.06.08a should look like this:
+For example, a citation for version v2023.06.09 should look like this:
 
-> A. S. Richardson, P. E. Adamson, G. Tang, A. Ostenfeld, G. T. Morgan, C. G. Sun, D. J. Watkins, O. S. Grannis, K. L. Phlips, and S. B. Swanekamp. (2023, June 08). NRL-Plasma-Physics-Division/turbopy: v2023.06.08a (Version v2023.06.08a). Zenodo. https://doi.org/10.5281/zenodo.4088189
+> A. S. Richardson, P. E. Adamson, G. Tang, A. Ostenfeld, G. T. Morgan, C. G. Sun, D. J. Watkins, O. S. Grannis, K. L. Phlips, and S. B. Swanekamp. (2023, June 09). NRL-Plasma-Physics-Division/turbopy: v2023.06.09 (Version v2023.06.09). Zenodo. https://doi.org/10.5281/zenodo.4088189
 
 While bibtex styles vary, the above output can be created by an entry something like this:
 
 ```bibtex
-@software{turbopy_v2023.06.08a,
+@software{turbopy_v2023.06.09,
 	author = {A. S. Richardson and P. E. Adamson and G. Tang and A. Ostenfeld and G. T. Morgan and C. G. Sun and D. J. Watkins and O. S. Grannis and K. L. Phlips and S. B. Swanekamp},
 	doi = {10.5281/zenodo.4088189},
 	month = {June 08},
 	publisher = {Zenodo},
-	title = {{NRL-Plasma-Physics-Division/turbopy: v2023.06.08a}},
+	title = {{NRL-Plasma-Physics-Division/turbopy: v2023.06.09}},
 	url = {https://doi.org/10.5281/zenodo.4088189},
-	version = {v2023.06.08a},
+	version = {v2023.06.09},
 	year = 2023,
 }
 ```
diff --git a/docs/conf.py b/docs/conf.py
index 13396c2..b8b3d51 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -24,7 +24,7 @@
 author = 'Steve Richardson'
 
 # The full version, including alpha/beta/rc tags
-release = 'v2023.06.08a'
+release = 'v2023.06.09'
 
 
 # -- General configuration ---------------------------------------------------
@@ -69,7 +69,7 @@
 # The theme to use for HTML and HTML Help pages.  See the documentation for
 # a list of builtin themes.
 #
-#html_theme = 'alabaster'
+# html_theme = 'alabaster'
 html_theme = "sphinx_rtd_theme"
 html_static_path = []
 
diff --git a/turbopy/__version__.py b/turbopy/__version__.py
index bf2bbf9..70d801a 100644
--- a/turbopy/__version__.py
+++ b/turbopy/__version__.py
@@ -1,3 +1,3 @@
 """Define a version number for turboPy"""
-VERSION = ('2023', '06', '08a')
+VERSION = ('2023', '06', '09')
 __version__ = '.'.join(map(str, VERSION))


Test patch:
diff --git a/tests/test_computetools.py b/tests/test_computetools.py
index 2629440..957b263 100644
--- a/tests/test_computetools.py
+++ b/tests/test_computetools.py
@@ -26,8 +26,8 @@ def test_push_with_no_fields():
     mass = 1.6726e-27
     E = np.zeros(3)
     B = np.zeros(3)
-    x_i = np.array([[0, 0, 0.0]], dtype=np.float)
-    v_i = np.array([[0, 0, 3.0e2]], dtype=np.float)
+    x_i = np.array([[0, 0, 0.0]], dtype=np.float64)
+    v_i = np.array([[0, 0, 3.0e2]], dtype=np.float64)
     p_i = mass * v_i
     clock = input_data["Clock"]
     N = 10
@@ -50,10 +50,10 @@ def test_push_with_crossed_fields():
     charge = 1.6022e-19
     mass = 1.6726e-27
     N = 10
-    x_i = np.array([[0, 0, 0.0]], dtype=np.float)
-    p_i = np.array([[0, 0, 0.0]], dtype=np.float)
-    E = np.array([[10, 0, 0]], dtype=np.float)
-    B = np.array([[0, 0, 10]], dtype=np.float)
+    x_i = np.array([[0, 0, 0.0]], dtype=np.float64)
+    p_i = np.array([[0, 0, 0.0]], dtype=np.float64)
+    E = np.array([[10, 0, 0]], dtype=np.float64)
+    B = np.array([[0, 0, 10]], dtype=np.float64)
     for i in range(N):
         push_example.push(x_i, p_i, charge, mass, E, B)
     x_final = np.array([[2.20028479e-09, -1.04482737e-08, 0]])