Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CoCo to check if the random number functions in NEST #1104

Merged
merged 15 commits into from
Oct 7, 2024

Conversation

pnbabu
Copy link
Contributor

@pnbabu pnbabu commented Sep 25, 2024

This CoCo checks if the functions associated with random numbers are used only in the update block. This CoCo applies only to the NEST simulator as using them in state, parameters, and internals blocks can lead to unexpected results.

Fixes #804

@clinssen
Copy link
Contributor

Would you say this PR fixes #804 and it can be closed?

@clinssen
Copy link
Contributor

Thanks, this looks great other than some very small comments!

@pnbabu
Copy link
Contributor Author

pnbabu commented Sep 26, 2024

Would you say this PR fixes #804 and it can be closed?

Yes, we can close #804 after merging this one.

@pnbabu pnbabu requested a review from clinssen October 2, 2024 09:56
Copy link
Contributor

@clinssen clinssen left a comment

Choose a reason for hiding this comment

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

Many thanks, just a tiny comment, please feel free to merge this PR afterwards!

tests/nest_tests/nest_random_functions_test.py Outdated Show resolved Hide resolved
@pnbabu pnbabu merged commit 3867eb5 into nest:master Oct 7, 2024
11 checks passed
Copy link

github-actions bot commented Oct 7, 2024

🐰 Bencher Report

Branch1104/merge
Testbedubuntu-latest

⚠️ WARNING: The following Measure does not have a Threshold. Without a Threshold, no Alerts will ever be generated!

Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the --ci-only-thresholds CLI flag.

Click to view all benchmark results
BenchmarkLatencynanoseconds (ns)
tests/nest_continuous_benchmarking/test_nest_continuous_benchmarking.py::TestNESTContinuousBenchmarking::test_stdp_nn_synapse📈 view plot
⚠️ NO THRESHOLD
4,072,677,984.60
🐰 View full continuous benchmarking report in Bencher

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.

Compilation of NESTML synapse model fails when random_normal() function is used
2 participants