-
Notifications
You must be signed in to change notification settings - Fork 55
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
Simplify the TimeIndependentMDCObjectiveFunction class #515
Open
rileyjmurray
wants to merge
12
commits into
develop
Choose a base branch
from
simplify-TimeIndependentMDCObjectiveFunction
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Simplify the TimeIndependentMDCObjectiveFunction class #515
rileyjmurray
wants to merge
12
commits into
develop
from
simplify-TimeIndependentMDCObjectiveFunction
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rileyjmurray
changed the title
Simplify the TimeIndependentMDCObjectiveFunction class
WIP: simplify the TimeIndependentMDCObjectiveFunction class
Dec 16, 2024
rileyjmurray
changed the title
WIP: simplify the TimeIndependentMDCObjectiveFunction class
Simplify the TimeIndependentMDCObjectiveFunction class
Dec 17, 2024
…me a file in test/performance so that it doesnt get discovered by testing frameworks like pytest
…t commit will simpify further, which may have consequences from the perspective of floating point arithmetic. Checking in NOW in case we want to revert to this version for numerical reasons.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TimeIndependentMDCObjectiveFunction is one of the most complicated classes I've encountered in pyGSTi. Right now ...
This PR simplifies TimeIndependentMDCObjectiveFunction so that
It has 4 private instance methods.It has 5 private instances as of 12/24. One of them is there to fix a stupid sign issue that I can resolve if I change some RawObjectiveFunction class' lsvec and dlsvec methods.These changes should materially improve maintainability of TimeIndependentMDCObjectiveFunction, as well as its 8 subclasses that collectively span ~500 lines. The outward behavior of this class should be the same as before up to floating point rounding errors.
For the curious, I went down this rabbit hole when working on PR #506.
Incidental changes related to MPI testing: moved some lightweight MPI tests from
test/test_packages
totest/unit
. This move was prompted by this PR because this PR touches code that involves a lot of MPI. While I was at it I renamed an MPI performance profiling file so that it didn't get misinterpreted as a test file.