Skip to content

Commit

Permalink
replace np.alltrue by np.all
Browse files Browse the repository at this point in the history
  • Loading branch information
joergfunger committed Mar 9, 2024
1 parent 91cfb38 commit 2c77bd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit_tests/inference/dynesty/test_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def __call__(self, inp):
for prm_name in ["a", "b", "sigma"]:
v1 = inference_data_1a["posterior"][prm_name].values.flatten()
v2 = inference_data_2["posterior"][prm_name].values.flatten()
if np.alltrue(v1 != v2):
if np.all(v1 != v2):
same_results = False
break
self.assertTrue(not same_results)
Expand All @@ -96,7 +96,7 @@ def __call__(self, inp):
for prm_name in ["a", "b", "sigma"]:
v1 = inference_data_1a["posterior"][prm_name].values.flatten()
v2 = inference_data_1b["posterior"][prm_name].values.flatten()
if np.alltrue(v1 != v2):
if np.all(v1 != v2):
same_results = False
break
self.assertTrue(same_results)
Expand Down

0 comments on commit 2c77bd8

Please sign in to comment.