Skip to content

Commit 80f5b0e

Browse files
Merge pull request #972 from StingraySoftware/make_it_work_with_new_numpy
Make it work with new numpy
2 parents f1dc4ed + 958ddc3 commit 80f5b0e

6 files changed

Lines changed: 16 additions & 7 deletions

File tree

CHANGELOG.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
v2.3.2 (2026-03-13)
2+
-------------------
3+
4+
Internal Changes
5+
^^^^^^^^^^^^^^^^
6+
7+
- Compatible with Numpy 2.5 and new Astropy (`#972 <https://github.com/StingraySoftware/stingray/pull/972>`__)
8+
9+
110
v2.3.1 (2026-03-02)
211
-------------------
312

CODE_OF_CONDUCT.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Project maintainers who do not follow or enforce the Code of Conduct in good fai
4040

4141
## Attribution
4242

43-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [https://contributor-covenant.org/version/1/4][version]
4444

45-
[homepage]: http://contributor-covenant.org
46-
[version]: http://contributor-covenant.org/version/1/4/
45+
[homepage]: https://contributor-covenant.org
46+
[version]: https://contributor-covenant.org/version/1/4/

docs/changes/936.docs.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ filterwarnings = [
183183
"ignore:.*__array_wrap__ must accept context and return_scalar arguments:DeprecationWarning",
184184
"ignore:.*Pyarrow:",
185185
"ignore:.*Creating an ndarray from ragged nested sequences:",
186-
"ignore:.*the tpfmodel submodule is not available without oktopus.*:UserWarning"
186+
"ignore:.*the tpfmodel submodule is not available without oktopus.*:UserWarning",
187+
"ignore:.*chararray"
187188

188189
]
189190

stingray/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ def contiguous_regions(condition):
943943
# If the end of condition is True, append the length of the array
944944
idx = np.r_[idx, condition.size]
945945
# Reshape the result into two columns
946-
idx.shape = (-1, 2)
946+
idx = idx.reshape(-1, 2)
947947
return idx
948948

949949

0 commit comments

Comments
 (0)