File tree Expand file tree Collapse file tree
tests/featurizers/composition Expand file tree Collapse file tree Original file line number Diff line number Diff 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" ))
You can’t perform that action at this time.
0 commit comments