Skip to content

Commit

Permalink
fic metric test
Browse files Browse the repository at this point in the history
  • Loading branch information
myaokai committed Mar 7, 2024
1 parent bd2e180 commit f8bef4e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file added tests/evals/data/testdata-2d-nan.pkl.gz
Binary file not shown.
Binary file added tests/evals/data/testdata-2d.pkl.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions tests/evals/test_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def test_pattern_correlation(self):
self.assertEqual(pattern_correlation(x, y).shape, (10,))

def test_2d(self):
with open('data/testdata-2d.pkl.gz', 'rb') as f:
with open('tests/evals/data/testdata-2d.pkl.gz', 'rb') as f:
d = pickle.load(f)
self.assertTrue(np.array_equal(
profile_correlation(d['x'], d['y']),
Expand All @@ -85,7 +85,7 @@ def test_2d(self):
))

def test_2d_nan(self):
with open('data/testdata-2d-nan.pkl.gz', 'rb') as f:
with open('tests/evals/data/testdata-2d-nan.pkl.gz', 'rb') as f:
d = pickle.load(f)
# self.assertTrue(np.array_equal(
# profile_correlation(d['x'], d['y']),
Expand Down

0 comments on commit f8bef4e

Please sign in to comment.