Skip to content

Commit bc1ce5c

Browse files
v0.0.27
float is added as an ordered data type
1 parent 99ff450 commit bc1ce5c

5 files changed

Lines changed: 7 additions & 7 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.26"
10+
version = "0.0.27"
1111
authors = [
1212
{ name="T. Bartz-Beielstein", email="tbb@bartzundbartz.de" }
1313
]

src/spotPython/build/kriging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ def fit(self, nat_X, nat_y):
329329
self.num_mask = array(list(map(lambda x: x == "num", self.var_type)))
330330
self.factor_mask = array(list(map(lambda x: x == "factor", self.var_type)))
331331
self.int_mask = array(list(map(lambda x: x == "int", self.var_type)))
332-
self.ordered_mask = array(list(map(lambda x: x == "int" or x == "num", self.var_type)))
332+
self.ordered_mask = array(list(map(lambda x: x == "int" or x == "num" or x == "float", self.var_type)))
333333
self.nat_to_cod_init()
334334
if self.n_theta > self.k:
335335
self.n_theta = self.k

test/test_build_Psi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def test_build_Psi():
6767
S.num_mask = array(list(map(lambda x: x == "num", S.var_type)))
6868
S.factor_mask = array(list(map(lambda x: x == "factor", S.var_type)))
6969
S.int_mask = array(list(map(lambda x: x == "int", S.var_type)))
70-
S.ordered_mask = array(list(map(lambda x: x == "num" or x == "int", S.var_type)))
70+
S.ordered_mask = array(list(map(lambda x: x == "num" or x == "int" or x == "float", S.var_type)))
7171
S.nat_to_cod_init()
7272
S.theta = zeros(S.n_theta)
7373
# TODO: Currently not used:

test/test_build_U.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def test_build_U():
6565
S.num_mask = array(list(map(lambda x: x == "num", S.var_type)))
6666
S.factor_mask = array(list(map(lambda x: x == "factor", S.var_type)))
6767
S.int_mask = array(list(map(lambda x: x == "int", S.var_type)))
68-
S.ordered_mask = array(list(map(lambda x: x == "num" or x == "int", S.var_type)))
68+
S.ordered_mask = array(list(map(lambda x: x == "num" or x == "int" or x == "float", S.var_type)))
6969
S.nat_to_cod_init()
7070
S.theta = zeros(S.n_theta)
7171
# TODO: Currently not used:

test/test_extract_from_bounds.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def test_extract_from_bounds():
3333
S.num_mask = array(list(map(lambda x: x == "num", S.var_type)))
3434
S.factor_mask = array(list(map(lambda x: x == "factor", S.var_type)))
3535
S.int_mask = array(list(map(lambda x: x == "int", S.var_type)))
36-
S.ordered_mask = array(list(map(lambda x: x == "num" or x == "int", S.var_type)))
36+
S.ordered_mask = array(list(map(lambda x: x == "num" or x == "int" or x == "float", S.var_type)))
3737
S.nat_to_cod_init()
3838
S.theta = zeros(S.n_theta)
3939
# TODO: Currently not used:
@@ -133,7 +133,7 @@ def test_extract_from_bounds():
133133
S.num_mask = array(list(map(lambda x: x == "num", S.var_type)))
134134
S.factor_mask = array(list(map(lambda x: x == "factor", S.var_type)))
135135
S.int_mask = array(list(map(lambda x: x == "int", S.var_type)))
136-
S.ordered_mask = array(list(map(lambda x: x == "num" or x == "int", S.var_type)))
136+
S.ordered_mask = array(list(map(lambda x: x == "num" or x == "int" or x == "float", S.var_type)))
137137
S.nat_to_cod_init()
138138
S.theta = zeros(S.n_theta)
139139
# TODO: Currently not used:
@@ -199,7 +199,7 @@ def test_extract_from_bounds():
199199
S.num_mask = array(list(map(lambda x: x == "num", S.var_type)))
200200
S.factor_mask = array(list(map(lambda x: x == "factor", S.var_type)))
201201
S.int_mask = array(list(map(lambda x: x == "int", S.var_type)))
202-
S.ordered_mask = array(list(map(lambda x: x == "num" or x == "int", S.var_type)))
202+
S.ordered_mask = array(list(map(lambda x: x == "num" or x == "int" or x == "float", S.var_type)))
203203
S.nat_to_cod_init()
204204
S.theta = zeros(S.n_theta)
205205
# TODO: Currently not used:

0 commit comments

Comments
 (0)