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

Updated rxd reactions to allow pure backward reactions. #3273

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

adamjhn
Copy link
Member

@adamjhn adamjhn commented Dec 5, 2024

Also updated generalized reaction to try and avoid species to state reactions becoming pure backward reactions because python gives priority to subclass operators.

Also updated generalized reaction to try and avoid reactions where a
species goes to a state becoming pure backward reactions because
python gives priority to subclass operators.
@adamjhn adamjhn added the rxd reaction-diffusion label Dec 5, 2024
rate_b *= k
else:
rate_b *= k**v
rate_b *= k if v == 1 else k**v
Copy link
Member

Choose a reason for hiding this comment

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

Do we need this change? If this is just a cleanup, can we move this and any other cleanups into a second, later PR? The idea being to keep it clear what changes exist to address the backward reaction issue.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think we need this change. I removed some of the unnecessary formatting changes to generalizedReaction.py.

Copy link

✔️ 8caef7f -> Azure artifacts URL

Copy link

codecov bot commented Dec 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.07%. Comparing base (9e5dd3d) to head (e00e1cb).
Report is 16 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3273      +/-   ##
==========================================
+ Coverage   67.06%   67.07%   +0.01%     
==========================================
  Files         571      571              
  Lines      111070   111050      -20     
==========================================
- Hits        74492    74490       -2     
+ Misses      36578    36560      -18     

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

@bbpbuildbot

This comment has been minimized.

Copy link

Copy link

✔️ e00e1cb -> Azure artifacts URL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rxd reaction-diffusion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants