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

Improve iterations stats initialization in solver classes #291

Closed
bwohlberg opened this issue May 6, 2022 · 0 comments · Fixed by #355
Closed

Improve iterations stats initialization in solver classes #291

bwohlberg opened this issue May 6, 2022 · 0 comments · Fixed by #355
Labels
improvement Improvement of existing code, including addressing of omissions or inconsistencies

Comments

@bwohlberg
Copy link
Collaborator

bwohlberg commented May 6, 2022

The iteration stats initialization in the solver classes is rather messy, and could perhaps be improved by moving it into a private support class for each solver class.

Quote from @Michael-T-McCann in #290:

This itstat initialization is always a stumbling block for me when reading the class. Could it be easily refactored into its own function/class?

@bwohlberg bwohlberg added the improvement Improvement of existing code, including addressing of omissions or inconsistencies label May 6, 2022
@bwohlberg bwohlberg linked a pull request Oct 20, 2022 that will close this issue
bwohlberg added a commit that referenced this issue Oct 24, 2022
* Move iteration stats initialization into separate method

* Add typing

* Clean up

* Address mypy error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement of existing code, including addressing of omissions or inconsistencies
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant