Skip to content

Commit

Permalink
fix: array dtype
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Schacht <[email protected]>
  • Loading branch information
OliverSchacht committed Oct 22, 2024
1 parent 6a837f6 commit 6a580ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/TestCIT_FastKCI.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ def test_Gaussian_dist(self):
pvalue03.append(round(cit_CIT(0, 3), 4))
pvalue032.append(round(cit_CIT(0, 3, {2}), 4))

pvalue01 = np.array(pvalue01)
pvalue03 = np.array(pvalue03)
pvalue032 = np.array(pvalue032)
self.assertTrue(np.all((0.0 <= pvalue01) & (pvalue01 <= 1.0)),
"pvalue01 contains invalid values")
self.assertTrue(np.all((0.0 <= pvalue03) & (pvalue03 <= 1.0)),
Expand Down
3 changes: 3 additions & 0 deletions tests/TestCIT_RCIT.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ def test_Gaussian_dist(self):
pvalue03.append(round(cit_CIT(0, 3), 4))
pvalue032.append(round(cit_CIT(0, 3, {2}), 4))

pvalue01 = np.array(pvalue01)
pvalue03 = np.array(pvalue03)
pvalue032 = np.array(pvalue032)
self.assertTrue(np.all((0.0 <= pvalue01) & (pvalue01 <= 1.0)),
"pvalue01 contains invalid values")
self.assertTrue(np.all((0.0 <= pvalue03) & (pvalue03 <= 1.0)),
Expand Down

0 comments on commit 6a580ed

Please sign in to comment.