Skip to content

Commit

Permalink
Make sure the tests start with the same seed for reproducibility
Browse files Browse the repository at this point in the history
  • Loading branch information
adriaan-vd-graaf committed Oct 29, 2024
1 parent af03ea2 commit 20a88a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_for_r_and_python_concordance.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
Now, we perform unit tests on the MR-link-2 functions. to ensure that there is no creep of the
First function v0
"""

np.random.seed(42)

def test_mr_link2_loglik_reference_v0_basic_r_concordance():
th = np.array([0.1, 0.01, 0.01])
lam = np.array([1, 2, 3])
Expand Down

0 comments on commit 20a88a8

Please sign in to comment.