Toward consistent naming of reactor "contents"#2001
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2001 +/- ##
==========================================
- Coverage 75.43% 75.41% -0.03%
==========================================
Files 454 454
Lines 56536 56548 +12
Branches 9331 9331
==========================================
- Hits 42650 42647 -3
- Misses 10730 10746 +16
+ Partials 3156 3155 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@speth ... thanks again for taking this on. Replacing Since I pushed on the current |
|
Naming this accessor "phase" does have the benefit of eliminating the need for the transitional "contents4" name, as well as well as being the shortest practical name I can imagine. |
Perfect - add the benefits on the side of |
Changes proposed in this pull request
Python:
contentsproperty forReactorBaseobjects that returns aSolutionobjectthermoandkineticsproperties ofReactorBase,Reactor, andReactorSurfaceC++:
ReactorBase::contentsmethod that returnsThermoPhase&solutionproperty ofReactorBase(which returnsshared_ptr<Solution>tocontents4, with the expectation of renaming thiscontentsin a future versionReactorSurface::syncStatewhich actually did the opposite of theReactorBase::syncStatemethod. I don't think there's a non-breaking way to implement this change, but I also don't think there is much if any user code that calls this method directly. Normally, users would rely onReactormethods to do this synchronization.Checklist
scons build&scons test) and unit tests address code coverage