Skip to content

Commit

Permalink
bug fixes: fix test workflow python version 3.9 and 3.10 in github ac…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
robinzyb committed Dec 13, 2023
1 parent 1b46945 commit b8d64b8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_cube/test_cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,21 @@ def test_cube_vals(self, cube_and_answer):
def test_pav(self, cube_and_answer):
cube = cube_and_answer[0]
answer_dir = cube_and_answer[1]
pav = cube.get_pav()
pav_x, pav = cube.get_pav()
pav_answer = np.load(os.path.join(answer_dir, "pav.npy"))
pav_x_answer = pav_answer[0]
pav_answer = pav_answer[1]
assert np.all(pav == pav_answer)
assert np.all(pav_x == pav_x_answer)
def test_mav(self, cube_and_answer):
cube = cube_and_answer[0]
answer_dir = cube_and_answer[1]
mav = cube.get_mav(l1=1, l2=1, ncov=2)
mav_x, mav = cube.get_mav(l1=1, l2=1, ncov=2)
mav_answer = np.load(os.path.join(answer_dir, "mav.npy"))
mav_x_answer = mav_answer[0]
mav_answer = mav_answer[1]
assert np.all(mav == mav_answer)
assert np.all(mav_x == mav_x_answer)



Expand Down

0 comments on commit b8d64b8

Please sign in to comment.