Skip to content

Commit

Permalink
corrected the samples shape test and print the value of the samples a…
Browse files Browse the repository at this point in the history
…t a specific index
  • Loading branch information
lohitv96 committed Apr 19, 2022
1 parent c60520b commit cdd2031
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/unit_tests/stochastic_process/test_karhunen_loeve_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@


def test_samples_shape():
assert samples.shape == (n_samples, 1, len(t), len(x))
assert samples.shape == (n_samples, 1, len(x), len(t))

# def test_samples_values():
# assert np.isclose(samples[27, 0, 246], 0.22392952712490516, rtol=0.01)
def test_samples_values():
print(samples[13, 0, 13, 6])
assert np.isclose(samples[13, 0, 13, 6], 0.22392952712490516, rtol=0.01)

0 comments on commit cdd2031

Please sign in to comment.