Skip to content

Commit dfc0f4c

Browse files
featurizer test
1 parent bf651ca commit dfc0f4c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/featurizers/composition/test_packing.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ def test_ape2(self):
130130
)
131131

132132
# Make sure we had a cache hit
133-
self.assertGreaterEqual(1, f._create_cluster_lookup_tool.cache_info().misses)
134-
self.assertGreaterEqual(1, f._create_cluster_lookup_tool.cache_info().hits)
133+
self.assertGreaterEqual(f._create_cluster_lookup_tool.cache_info().misses, 1)
134+
self.assertGreaterEqual(f._create_cluster_lookup_tool.cache_info().hits, 1)
135135

136136
# Change the tolerance, see if it changes the results properly
137137
f.threshold = 0.002
@@ -144,8 +144,8 @@ def test_ape2(self):
144144
np.testing.assert_array_almost_equal([[0]] * 2, ds)
145145

146146
# Make sure we had a cache miss
147-
self.assertGreaterEqual(5, f._create_cluster_lookup_tool.cache_info().misses)
148-
self.assertGreaterEqual(4, f._create_cluster_lookup_tool.cache_info().hits)
147+
self.assertGreaterEqual(f._create_cluster_lookup_tool.cache_info().misses, 1)
148+
self.assertGreaterEqual(f._create_cluster_lookup_tool.cache_info().hits, 1)
149149

150150
# Compute the distances from Cu50Zr50
151151
mean_dists = f.compute_nearest_cluster_distance(Composition("CuZr"))

0 commit comments

Comments
 (0)