Skip to content

Commit 23bd709

Browse files
authored
Merge pull request #186 from ndisner/fix-tests
fix test np.float and v#
2 parents ce457b6 + d3f9343 commit 23bd709

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: python
22
python:
3-
- 3.7
3+
- 3.9
44
install:
55
- sudo apt update
66
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,21 @@ Also, we would appreciate it if you would cite turboPy. There are a few ways you
5959

6060
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)
6161

62-
For example, a citation for version v2023.06.08a should look like this:
62+
For example, a citation for version v2023.06.09 should look like this:
6363

64-
> 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
64+
> 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
6565
6666
While bibtex styles vary, the above output can be created by an entry something like this:
6767

6868
```bibtex
69-
@software{turbopy_v2023.06.08a,
69+
@software{turbopy_v2023.06.09,
7070
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},
7171
doi = {10.5281/zenodo.4088189},
7272
month = {June 08},
7373
publisher = {Zenodo},
74-
title = {{NRL-Plasma-Physics-Division/turbopy: v2023.06.08a}},
74+
title = {{NRL-Plasma-Physics-Division/turbopy: v2023.06.09}},
7575
url = {https://doi.org/10.5281/zenodo.4088189},
76-
version = {v2023.06.08a},
76+
version = {v2023.06.09},
7777
year = 2023,
7878
}
7979
```

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
author = 'Steve Richardson'
2525

2626
# The full version, including alpha/beta/rc tags
27-
release = 'v2023.06.08a'
27+
release = 'v2023.06.09'
2828

2929

3030
# -- General configuration ---------------------------------------------------
@@ -69,7 +69,7 @@
6969
# The theme to use for HTML and HTML Help pages. See the documentation for
7070
# a list of builtin themes.
7171
#
72-
#html_theme = 'alabaster'
72+
# html_theme = 'alabaster'
7373
html_theme = "sphinx_rtd_theme"
7474
html_static_path = []
7575

tests/test_computetools.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def test_push_with_no_fields():
2626
mass = 1.6726e-27
2727
E = np.zeros(3)
2828
B = np.zeros(3)
29-
x_i = np.array([[0, 0, 0.0]], dtype=np.float)
30-
v_i = np.array([[0, 0, 3.0e2]], dtype=np.float)
29+
x_i = np.array([[0, 0, 0.0]], dtype=np.float64)
30+
v_i = np.array([[0, 0, 3.0e2]], dtype=np.float64)
3131
p_i = mass * v_i
3232
clock = input_data["Clock"]
3333
N = 10
@@ -50,10 +50,10 @@ def test_push_with_crossed_fields():
5050
charge = 1.6022e-19
5151
mass = 1.6726e-27
5252
N = 10
53-
x_i = np.array([[0, 0, 0.0]], dtype=np.float)
54-
p_i = np.array([[0, 0, 0.0]], dtype=np.float)
55-
E = np.array([[10, 0, 0]], dtype=np.float)
56-
B = np.array([[0, 0, 10]], dtype=np.float)
53+
x_i = np.array([[0, 0, 0.0]], dtype=np.float64)
54+
p_i = np.array([[0, 0, 0.0]], dtype=np.float64)
55+
E = np.array([[10, 0, 0]], dtype=np.float64)
56+
B = np.array([[0, 0, 10]], dtype=np.float64)
5757
for i in range(N):
5858
push_example.push(x_i, p_i, charge, mass, E, B)
5959
x_final = np.array([[2.20028479e-09, -1.04482737e-08, 0]])

turbopy/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Define a version number for turboPy"""
2-
VERSION = ('2023', '06', '08a')
2+
VERSION = ('2023', '06', '09')
33
__version__ = '.'.join(map(str, VERSION))

0 commit comments

Comments
 (0)