-
Notifications
You must be signed in to change notification settings - Fork 16
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
Remove SolverABC #1625
Remove SolverABC #1625
Conversation
With the new Builder/Designer architecture, this Solver base class no longer has a place. All the functionality of the base class has been moved to the CodesSolver class, which is the only place the base class was really being used.
Make it so it no longer derives from SolverABC, which has been removed
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
I've just noticed that Edit: although, the transport solver is using a |
We could put them both under an If we have better solutions than that I am open to them but I imagine we will come across these typing dependency things quite regularly. |
|
The concern is more of an architectural one - modules should be as 'standalone' as we can make them, and, where possible, only rely on things in Since I noticed that the dependency on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy with this as is with the open issues.
It may be nice to have a CodeSolver example that isnt dependent on having any code installed. Maybe instead of getting that in here we should open an issue for that. I think it could be made from the example thats deleted here.
* Remove SolverABC With the new Builder/Designer architecture, this Solver base class no longer has a place. All the functionality of the base class has been moved to the CodesSolver class, which is the only place the base class was really being used. * Refactor EU-DEMO SteadyStatePowerCycle Make it so it no longer derives from SolverABC, which has been removed * Remove references to SolverABC in docs
Linked Issues
Closes #1423
Description
Removes
SolverABC
and incorporates its functionality intoCodesSolver
. Fortunately,SolverABC
wasn't used in many places.I do think we may be missing a piece of the puzzle, in that we have
Builder
s that make CAD,Designer
s that design CAD, but we don't have a base 'calculator'. It could be that we don't actually need one, but I think it's worth a discussion at some point. #1611 contains one suggestion.Interface Changes
No more
SolverABC
.Checklist
I confirm that I have completed the following checks:
pytest tests --reactor
flake8
andblack .
sphinx-build -W documentation/source documentation/build