Skip to content

Commit

Permalink
fix seed, make test more predictable
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgWa committed Sep 16, 2024
1 parent 26b7d86 commit 67501da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit_tests/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,11 @@ def test_calibration_manager_init():


def calibration_testdata():
np.random.seed(42)
# create some test data and make sure estimation works
mz_library = np.linspace(100, 1000, 1000)
mz_observed = (
mz_library + np.random.normal(0, 0.001, 1000) + mz_library * 0.00001 + 0.005
mz_library + np.random.normal(0, 0.0001, 1000) + mz_library * 0.00001 + 0.005
)

rt_library = np.linspace(0, 100, 1000)
Expand Down

0 comments on commit 67501da

Please sign in to comment.