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

Fixes a bug in the hook system #3125

Merged
merged 6 commits into from Feb 27, 2024
Merged

Fixes a bug in the hook system #3125

merged 6 commits into from Feb 27, 2024

Conversation

naylor-b
Copy link
Member

Summary

If a hook was registered in an inherited class it would wipe out any existing hooks in the base class.

Related Issues

Backwards incompatibilities

None

New Dependencies

None

@coveralls
Copy link

Coverage Status

coverage: 89.762%. first build
when pulling e8da7af on naylor-b:hook_fix
into 56f4bb7 on OpenMDAO:master.

Copy link
Member

@Kenneth-T-Moore Kenneth-T-Moore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This definitely fixes the problem for aviary.

@swryan swryan merged commit ac679c0 into OpenMDAO:master Feb 27, 2024
8 checks passed
@naylor-b naylor-b deleted the hook_fix branch March 14, 2024 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Registering a hook function in a derived class wipes out any hooks already registered in the base class.
5 participants