Skip to content

Add seed to random generators in tests#61

Merged
Wrzlprmft merged 1 commit intoneurophysik:masterfrom
alexfikl:set-seeds
Feb 12, 2025
Merged

Add seed to random generators in tests#61
Wrzlprmft merged 1 commit intoneurophysik:masterfrom
alexfikl:set-seeds

Conversation

@alexfikl
Copy link
Copy Markdown
Contributor

@alexfikl alexfikl commented Jan 30, 2025

As discussed in #60 (comment). Fingers crossed!

lyap = np.average(lyaps[lyap_start:,i], weights=weights[lyap_start:])
stderr = sem(lyaps[lyap_start:,i])
self.assertAlmostEqual(lyap_control, lyap, delta=3*stderr)
self.assertAlmostEqual(lyap_control, lyap, delta=3.5*stderr)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, this bumps the tolerance a bit to make the tests pass for this particular set of random values.

@alexfikl alexfikl marked this pull request as ready for review January 30, 2025 08:35
@Wrzlprmft Wrzlprmft merged commit 1236d1f into neurophysik:master Feb 12, 2025
8 checks passed
@alexfikl alexfikl deleted the set-seeds branch February 12, 2025 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants