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

ci: avoid callbacks if unspecified #366

Merged
merged 12 commits into from
Dec 2, 2021
Merged

ci: avoid callbacks if unspecified #366

merged 12 commits into from
Dec 2, 2021

Conversation

redeboer
Copy link
Member

@redeboer redeboer commented Dec 2, 2021

Previously, if no callback was specified in the optimizer constructor, an empty CallbackList would be created and on_optimize_end etc were always called. This is (theoretically) slower.

Some other improvements:

@redeboer redeboer added the 🔨 Maintenance Maintenance and upkeep improvements label Dec 2, 2021
@redeboer redeboer added this to the 0.4.0 milestone Dec 2, 2021
@redeboer redeboer self-assigned this Dec 2, 2021
@redeboer redeboer enabled auto-merge (squash) December 2, 2021 16:43
@redeboer redeboer mentioned this pull request Dec 2, 2021
@redeboer redeboer marked this pull request as draft December 2, 2021 17:25
auto-merge was automatically disabled December 2, 2021 17:25

Pull request was converted to draft

@redeboer redeboer marked this pull request as ready for review December 2, 2021 19:25
@redeboer
Copy link
Member Author

redeboer commented Dec 2, 2021

Slow-down mentioned in #367 seems to be caused by b0641fb. Fixed with ca3d6b2.

@redeboer redeboer merged commit 3bce0b4 into main Dec 2, 2021
@redeboer redeboer deleted the improve-callbacks branch December 2, 2021 19:43
redeboer added a commit that referenced this pull request Dec 7, 2021
* chore: use new attr API for FitResult
* ci: fail pytest on warnings
* fix: add attrs as dependency
* fix: close stream in Loadable callbacks
* fix: implement __eq__ for CallbackList
* refactor: avoid callbacks if unspecified
* test: put Minuit2 tests under TestMinuit2 class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 Maintenance Maintenance and upkeep improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant