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

allow user to use custom function for simulation callback #211

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

AurelienJaquier
Copy link
Contributor

No description provided.

@AurelienJaquier AurelienJaquier self-assigned this Sep 3, 2024
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 12.50000% with 14 lines in your changes missing coverage. Please review.

Project coverage is 91.22%. Comparing base (c5666ce) to head (b5feb4f).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
bluecellulab/simulation/simulation.py 12.50% 14 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #211      +/-   ##
==========================================
- Coverage   91.24%   91.22%   -0.02%     
==========================================
  Files          95       95              
  Lines        5708     5721      +13     
==========================================
+ Hits         5208     5219      +11     
- Misses        500      502       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@bilalesi bilalesi left a comment

Choose a reason for hiding this comment

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

@AurelienJaquier thanks for the PR, I left a comment regarding cvode

Comment on lines 78 to 79
neuron.h.cvode.event(
neuron.h.t + self.progress_dt, self.progress_callback)
Copy link

Choose a reason for hiding this comment

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

what if the cvode is disabled
for synaptome simulation, we have to disable the cvode, so i don't know if the event will be triggered hence the progress_callback will work ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have tested with cvode disabled, and the callback function is still called.

Copy link

Choose a reason for hiding this comment

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

okey thanks

@AurelienJaquier AurelienJaquier merged commit 3eec88b into main Sep 3, 2024
9 checks passed
@AurelienJaquier AurelienJaquier deleted the custom-callback branch September 3, 2024 14:01
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.

5 participants