Skip to content

Commit ac749c3

Browse files
committed
Update to numpy==2
1 parent 7f6b231 commit ac749c3

File tree

3 files changed

+89
-84
lines changed

3 files changed

+89
-84
lines changed

.github/workflows/python.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ name: Python Build
1010

1111
jobs:
1212
from-sdist:
13-
name: python source distribution
13+
name: python unit-tests
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Install uv
@@ -23,6 +23,11 @@ jobs:
2323
python-version: 3.8
2424
python-version-file: "pyproject.toml"
2525

26+
- name: loc
27+
run: pwd
28+
- name: content
29+
run: ls
30+
2631
- name: Install pyssht
2732
run: uv sync --all-extras --dev
2833

src/pyssht/SSHT_Python_Documentation.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -454,11 +454,11 @@ Tuple containing `(x_p, y_p, z_p)` the rotated coordinates the same shape and ty
454454
## pyssht.rot_cart_1d and pyssht.rot_cart_2d
455455

456456
~~~~{.python}
457-
(x_p, y_p, z_p) = pyssht.rot_cart_1d(np.ndarray[np.float_t, ndim=1] x, np.ndarray[np.float_t, ndim=1] y, np.ndarray[np.float_t, ndim=1] z, list rot)
457+
(x_p, y_p, z_p) = pyssht.rot_cart_1d(np.ndarray[np.float64_t, ndim=1] x, np.ndarray[np.float64_t, ndim=1] y, np.ndarray[np.float64_t, ndim=1] z, list rot)
458458
~~~~
459459

460460
~~~~{.python}
461-
(x_p, y_p, z_p) = pyssht.rot_cart_2d(np.ndarray[np.float_t, ndim=2] x, np.ndarray[np.float_t, ndim=2] y, np.ndarray[np.float_t, ndim=2] z, list rot)
461+
(x_p, y_p, z_p) = pyssht.rot_cart_2d(np.ndarray[np.float64_t, ndim=2] x, np.ndarray[np.float64_t, ndim=2] y, np.ndarray[np.float64_t, ndim=2] z, list rot)
462462
~~~~
463463

464464
Computes the rotations of the cartesian coordinates given a set of Euler angles. The inputs can be any shape `ndarray`s. Same as `pyssht.rot_cart` except optimised for arrays that are 1 or 2 dimensional.

0 commit comments

Comments
 (0)