Skip to content

Commit 6751b28

Browse files
v0.0.17: consider "float" as non factors
1 parent 3b504cd commit 6751b28

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

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.0.16"
10+
version = "0.0.17"
1111
authors = [
1212
{ name="T. Bartz-Beielstein", email="tbb@bartzundbartz.de" }
1313
]

src/spotPython/utils/repair.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55
def repair_non_numeric(X, var_type):
66
"""
77
Round non-numeric values to integers.
8+
This applies to all variables except for "num" and "float".
89
910
Args:
1011
X (numpy.ndarray): X array
1112
var_type (list): list with type information
1213
"""
1314
for i in range(X.shape[1]):
14-
if var_type[i] != "num":
15+
if var_type[i] not in ["num", "float"]:
1516
X[:, i] = around(X[:, i])
1617
return X
1718

0 commit comments

Comments
 (0)