Skip to content

Commit e1892a3

Browse files
authored
Add pinv and fix solve for numpy>=2.1 (#63)
* add pinv * fix failing tests with solve * format * update changelog * prepare release * update CI
1 parent d21153a commit e1892a3

File tree

15 files changed

+1006
-465
lines changed

15 files changed

+1006
-465
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up Python
2020
uses: actions/setup-python@v4
2121
with:
22-
python-version: "3.10"
22+
python-version: "3.11"
2323
- name: Install build dependencies
2424
run: python -m pip install build
2525
- name: Build package

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ["3.9", "3.10", "3.11"]
14+
python-version: ["3.10", "3.11", "3.12"]
1515
fail-fast: false
1616
steps:
1717
- uses: actions/checkout@v3

docs/source/changelog.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Change Log
22

3-
## v0.x.x (Unreleased)
3+
## v0.8.0 (2024 Sep 19)
44
### New features
5+
* Add `numpy.linalg.pinv` wrapper {pull}`63`
56

67
### Maintenance and fixes
7-
8-
### Documentation
8+
* Update to handle modified behaviour of `numpy.linalg.solve` {pull}`63`
99

1010
## v0.7.0 (2024 Jan 17)
1111
### New features

docs/source/tutorials/linalg_tutorial.ipynb

Lines changed: 316 additions & 181 deletions
Large diffs are not rendered by default.

docs/source/tutorials/np_linalg_tutorial_port.ipynb

Lines changed: 316 additions & 73 deletions
Large diffs are not rendered by default.

docs/source/tutorials/stats_tutorial.ipynb

Lines changed: 256 additions & 194 deletions
Large diffs are not rendered by default.

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "flit_core.buildapi"
66
name = "xarray-einstats"
77
description = "Stats, linear algebra and einops for xarray"
88
readme = "README.md"
9-
requires-python = ">=3.9"
9+
requires-python = ">=3.10"
1010
license = {file = "LICENSE"}
1111
authors = [
1212
{name = "ArviZ team", email = "arviz.devs@gmail.com"}
@@ -27,8 +27,8 @@ classifiers = [
2727
]
2828
dynamic = ["version"]
2929
dependencies = [
30-
"numpy>=1.22",
31-
"scipy>=1.8",
30+
"numpy>=1.23",
31+
"scipy>=1.9",
3232
"xarray>=2022.09.0",
3333
]
3434

src/xarray_einstats/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"EinopsAccessor",
2020
]
2121

22-
__version__ = "0.8.0.dev0"
22+
__version__ = "0.8.0"
2323

2424

2525
def sort(da, dim, **kwargs):

src/xarray_einstats/accessors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Accessors for xarray_einstats features."""
2+
23
import xarray as xr
34

45
from .linalg import (

0 commit comments

Comments
 (0)