Skip to content

Commit ea853bb

Browse files
kshitij-mathsndem0
authored andcommitted
add squeeze for numpy compatibility
1 parent 6392627 commit ea853bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_aggregation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ def test_optimize_sigma_within_default_range(self):
142142
mrom = MockMROM(self.db, n_roms=2)
143143
agg = Aggregation()
144144
sigma = agg._optimize_sigma(mrom)
145-
self.assertGreaterEqual(float(sigma), 1e-5)
146-
self.assertLessEqual(float(sigma), 1e-2)
145+
self.assertGreaterEqual(float(np.squeeze(sigma)), 1e-5)
146+
self.assertLessEqual(float(np.squeeze(sigma)), 1e-2)
147147

148148
def test_aggregation_no_fit_function(self):
149149
mrom = MockMROM(self.db, n_roms=2)

0 commit comments

Comments
 (0)