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

Test side effects in KINETIC blocks. #1392

Merged
merged 1 commit into from
Aug 12, 2024
Merged

Test side effects in KINETIC blocks. #1392

merged 1 commit into from
Aug 12, 2024

Conversation

1uc
Copy link
Collaborator

@1uc 1uc commented Aug 9, 2024

Effectively the side effects in KINETIC blocks, such as assigning a STATE to a RANGE variable happen (once more) after the state has been updated.

This commit adds test for this; and "fixes" the bug by running the functor method initialize again after running Newton.

Effectively the side effects in KINETIC blocks, such as assigning a
STATE to a RANGE variable happen (once more) after the state has been
updated.

This commit adds test for this; and "fixes" the bug by running the
functor method `initialize` again after running Newton.
Copy link

codecov bot commented Aug 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.75%. Comparing base (c5052b9) to head (a6eb021).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1392   +/-   ##
=======================================
  Coverage   86.75%   86.75%           
=======================================
  Files         180      180           
  Lines       13669    13670    +1     
=======================================
+ Hits        11858    11859    +1     
  Misses       1811     1811           

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

bbpadministrator pushed a commit to BlueBrain/nmodl-references that referenced this pull request Aug 9, 2024
@1uc 1uc marked this pull request as ready for review August 9, 2024 14:30
@1uc 1uc changed the title Assert side effects in KINETIC blocks. Test side effects in KINETIC blocks. Aug 12, 2024
@1uc 1uc merged commit a8c5755 into master Aug 12, 2024
24 checks passed
@1uc 1uc deleted the 1uc/fix-cadifpmp-shift branch August 12, 2024 08:08
@1uc
Copy link
Collaborator Author

1uc commented Aug 12, 2024

The solution is ugly. Hence, we need to revisit it. The issue is: #1391.

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