Skip to content

Commit 8969896

Browse files
0.25.10 Radical cleanup, max_points added
1 parent 0bba6ea commit 8969896

5 files changed

Lines changed: 536 additions & 1458 deletions

File tree

notebooks/00_spotPython_tests.ipynb

Lines changed: 77 additions & 948 deletions
Large diffs are not rendered by default.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77

88
[project]
99
name = "spotpython"
10-
version = "0.25.9"
10+
version = "0.25.10"
1111
authors = [
1212
{ name="T. Bartz-Beielstein", email="tbb@bartzundbartz.de" }
1313
]

src/spotpython/gp/distances.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ def covar_anisotropic(X1=None, X2=None, d=None, g=None) -> np.ndarray:
4646
[[0.00012341 0.00033546]
4747
[0.00033546 0.000911
4848
"""
49+
# Convert pandas dataframes to numpy arrays
50+
X1 = np.asarray(X1)
51+
if X2 is not None:
52+
X2 = np.asarray(X2)
4953
if X1 is None:
5054
raise ValueError("X1 cannot be None")
5155

0 commit comments

Comments
 (0)