Skip to content

Eliminate redundancy in Arrhenius / ArrheniusRate#1978

Merged
ischoegl merged 2 commits intoCantera:mainfrom
speth:fix-modify-Arrhenius
Sep 17, 2025
Merged

Eliminate redundancy in Arrhenius / ArrheniusRate#1978
ischoegl merged 2 commits intoCantera:mainfrom
speth:fix-modify-Arrhenius

Conversation

@speth
Copy link
Copy Markdown
Member

@speth speth commented Sep 15, 2025

Changes proposed in this pull request

  • Fix setting the rate member of a Reaction object to work with Arrhenius objects
  • Deprecate the Python Arrhenius class in favor of ArrheniusRate

If applicable, fill in the issue number this pull request is fixing

Checklist

  • The pull request includes a clear description of this code change
  • Commit messages have short titles and reference relevant issues
  • Build passes (scons build & scons test) and unit tests address code coverage
  • Style & formatting of contributed code follows contributing guidelines
  • The pull request is ready for review

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 15, 2025

Codecov Report

❌ Patch coverage is 90.32258% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.46%. Comparing base (a68b277) to head (5013312).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
interfaces/cython/cantera/reaction.pyx 90.32% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1978      +/-   ##
==========================================
- Coverage   75.47%   75.46%   -0.01%     
==========================================
  Files         450      450              
  Lines       56306    56315       +9     
  Branches     9301     9301              
==========================================
+ Hits        42495    42500       +5     
- Misses      10676    10680       +4     
  Partials     3135     3135              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@speth speth force-pushed the fix-modify-Arrhenius branch from 25e8806 to 5013312 Compare September 15, 2025 21:45
Copy link
Copy Markdown
Member

@ischoegl ischoegl left a comment

Choose a reason for hiding this comment

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

Thanks for eliminating this vestigial class, which was long overdue - I believe that removal was more complex at the time that ArrheniusRate was first introduced, but that has thankfully changed.

@ischoegl ischoegl merged commit 72fbf27 into Cantera:main Sep 17, 2025
51 checks passed
@speth speth deleted the fix-modify-Arrhenius branch September 17, 2025 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

InterfaceKinetics::modifyReaction reports error when using Python Arrhenius rate

2 participants