We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b504cd commit 6751b28Copy full SHA for 6751b28
2 files changed
pyproject.toml
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
7
8
[project]
9
name = "spotPython"
10
-version = "0.0.16"
+version = "0.0.17"
11
authors = [
12
{ name="T. Bartz-Beielstein", email="tbb@bartzundbartz.de" }
13
]
src/spotPython/utils/repair.py
@@ -5,13 +5,14 @@
5
def repair_non_numeric(X, var_type):
6
"""
Round non-numeric values to integers.
+ This applies to all variables except for "num" and "float".
Args:
X (numpy.ndarray): X array
var_type (list): list with type information
14
for i in range(X.shape[1]):
- if var_type[i] != "num":
15
+ if var_type[i] not in ["num", "float"]:
16
X[:, i] = around(X[:, i])
17
return X
18
0 commit comments