Skip to content

Commit 51204f4

Browse files
authored
Merge pull request #247 from GeoStat-Framework/pinv2-deprecated
Remove deprecated scipy method pinv2
2 parents 5583a03 + 3dddf4a commit 51204f4

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

src/gstools/krige/base.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
__all__ = ["Krige"]
3636

3737

38-
P_INV = {"pinv": spl.pinv, "pinv2": spl.pinv2, "pinvh": spl.pinvh}
38+
P_INV = {"pinv": spl.pinv, "pinvh": spl.pinvh}
3939
"""dict: Standard pseudo-inverse routines"""
4040

4141

@@ -103,8 +103,7 @@ class Krige(Field):
103103
pseudo_inv_type : :class:`str` or :any:`callable`, optional
104104
Here you can select the algorithm to compute the pseudo-inverse matrix:
105105
106-
* `"pinv"`: use `pinv` from `scipy` which uses `lstsq`
107-
* `"pinv2"`: use `pinv2` from `scipy` which uses `SVD`
106+
* `"pinv"`: use `pinv` from `scipy` which uses `SVD`
108107
* `"pinvh"`: use `pinvh` from `scipy` which uses eigen-values
109108
110109
If you want to use another routine to invert the kriging matrix,

src/gstools/krige/methods.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ class Simple(Krige):
6767
pseudo_inv_type : :class:`str` or :any:`callable`, optional
6868
Here you can select the algorithm to compute the pseudo-inverse matrix:
6969
70-
* `"pinv"`: use `pinv` from `scipy` which uses `lstsq`
71-
* `"pinv2"`: use `pinv2` from `scipy` which uses `SVD`
70+
* `"pinv"`: use `pinv` from `scipy` which uses `SVD`
7271
* `"pinvh"`: use `pinvh` from `scipy` which uses eigen-values
7372
7473
If you want to use another routine to invert the kriging matrix,
@@ -162,8 +161,7 @@ class Ordinary(Krige):
162161
pseudo_inv_type : :class:`str` or :any:`callable`, optional
163162
Here you can select the algorithm to compute the pseudo-inverse matrix:
164163
165-
* `"pinv"`: use `pinv` from `scipy` which uses `lstsq`
166-
* `"pinv2"`: use `pinv2` from `scipy` which uses `SVD`
164+
* `"pinv"`: use `pinv` from `scipy` which uses `SVD`
167165
* `"pinvh"`: use `pinvh` from `scipy` which uses eigen-values
168166
169167
If you want to use another routine to invert the kriging matrix,
@@ -267,8 +265,7 @@ class Universal(Krige):
267265
pseudo_inv_type : :class:`str` or :any:`callable`, optional
268266
Here you can select the algorithm to compute the pseudo-inverse matrix:
269267
270-
* `"pinv"`: use `pinv` from `scipy` which uses `lstsq`
271-
* `"pinv2"`: use `pinv2` from `scipy` which uses `SVD`
268+
* `"pinv"`: use `pinv` from `scipy` which uses `SVD`
272269
* `"pinvh"`: use `pinvh` from `scipy` which uses eigen-values
273270
274271
If you want to use another routine to invert the kriging matrix,
@@ -369,8 +366,7 @@ class ExtDrift(Krige):
369366
pseudo_inv_type : :class:`str` or :any:`callable`, optional
370367
Here you can select the algorithm to compute the pseudo-inverse matrix:
371368
372-
* `"pinv"`: use `pinv` from `scipy` which uses `lstsq`
373-
* `"pinv2"`: use `pinv2` from `scipy` which uses `SVD`
369+
* `"pinv"`: use `pinv` from `scipy` which uses `SVD`
374370
* `"pinvh"`: use `pinvh` from `scipy` which uses eigen-values
375371
376372
If you want to use another routine to invert the kriging matrix,
@@ -464,8 +460,7 @@ class Detrended(Krige):
464460
pseudo_inv_type : :class:`str` or :any:`callable`, optional
465461
Here you can select the algorithm to compute the pseudo-inverse matrix:
466462
467-
* `"pinv"`: use `pinv` from `scipy` which uses `lstsq`
468-
* `"pinv2"`: use `pinv2` from `scipy` which uses `SVD`
463+
* `"pinv"`: use `pinv` from `scipy` which uses `SVD`
469464
* `"pinvh"`: use `pinvh` from `scipy` which uses eigen-values
470465
471466
If you want to use another routine to invert the kriging matrix,

0 commit comments

Comments
 (0)