Skip to content

Commit

Permalink
Merge pull request #247 from GeoStat-Framework/pinv2-deprecated
Browse files Browse the repository at this point in the history
Remove deprecated scipy method pinv2
  • Loading branch information
LSchueler authored Aug 6, 2022
2 parents 5583a03 + 3dddf4a commit 51204f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
5 changes: 2 additions & 3 deletions src/gstools/krige/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
__all__ = ["Krige"]


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


Expand Down Expand Up @@ -103,8 +103,7 @@ class Krige(Field):
pseudo_inv_type : :class:`str` or :any:`callable`, optional
Here you can select the algorithm to compute the pseudo-inverse matrix:
* `"pinv"`: use `pinv` from `scipy` which uses `lstsq`
* `"pinv2"`: use `pinv2` from `scipy` which uses `SVD`
* `"pinv"`: use `pinv` from `scipy` which uses `SVD`
* `"pinvh"`: use `pinvh` from `scipy` which uses eigen-values
If you want to use another routine to invert the kriging matrix,
Expand Down
15 changes: 5 additions & 10 deletions src/gstools/krige/methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ class Simple(Krige):
pseudo_inv_type : :class:`str` or :any:`callable`, optional
Here you can select the algorithm to compute the pseudo-inverse matrix:
* `"pinv"`: use `pinv` from `scipy` which uses `lstsq`
* `"pinv2"`: use `pinv2` from `scipy` which uses `SVD`
* `"pinv"`: use `pinv` from `scipy` which uses `SVD`
* `"pinvh"`: use `pinvh` from `scipy` which uses eigen-values
If you want to use another routine to invert the kriging matrix,
Expand Down Expand Up @@ -162,8 +161,7 @@ class Ordinary(Krige):
pseudo_inv_type : :class:`str` or :any:`callable`, optional
Here you can select the algorithm to compute the pseudo-inverse matrix:
* `"pinv"`: use `pinv` from `scipy` which uses `lstsq`
* `"pinv2"`: use `pinv2` from `scipy` which uses `SVD`
* `"pinv"`: use `pinv` from `scipy` which uses `SVD`
* `"pinvh"`: use `pinvh` from `scipy` which uses eigen-values
If you want to use another routine to invert the kriging matrix,
Expand Down Expand Up @@ -267,8 +265,7 @@ class Universal(Krige):
pseudo_inv_type : :class:`str` or :any:`callable`, optional
Here you can select the algorithm to compute the pseudo-inverse matrix:
* `"pinv"`: use `pinv` from `scipy` which uses `lstsq`
* `"pinv2"`: use `pinv2` from `scipy` which uses `SVD`
* `"pinv"`: use `pinv` from `scipy` which uses `SVD`
* `"pinvh"`: use `pinvh` from `scipy` which uses eigen-values
If you want to use another routine to invert the kriging matrix,
Expand Down Expand Up @@ -369,8 +366,7 @@ class ExtDrift(Krige):
pseudo_inv_type : :class:`str` or :any:`callable`, optional
Here you can select the algorithm to compute the pseudo-inverse matrix:
* `"pinv"`: use `pinv` from `scipy` which uses `lstsq`
* `"pinv2"`: use `pinv2` from `scipy` which uses `SVD`
* `"pinv"`: use `pinv` from `scipy` which uses `SVD`
* `"pinvh"`: use `pinvh` from `scipy` which uses eigen-values
If you want to use another routine to invert the kriging matrix,
Expand Down Expand Up @@ -464,8 +460,7 @@ class Detrended(Krige):
pseudo_inv_type : :class:`str` or :any:`callable`, optional
Here you can select the algorithm to compute the pseudo-inverse matrix:
* `"pinv"`: use `pinv` from `scipy` which uses `lstsq`
* `"pinv2"`: use `pinv2` from `scipy` which uses `SVD`
* `"pinv"`: use `pinv` from `scipy` which uses `SVD`
* `"pinvh"`: use `pinvh` from `scipy` which uses eigen-values
If you want to use another routine to invert the kriging matrix,
Expand Down

0 comments on commit 51204f4

Please sign in to comment.