Skip to content

fix error if ULF_from_maneuver == True#1042

Open
cmbenne3 wants to merge 3 commits intoOpenMDAO:mainfrom
cmbenne3:max_maneuver_bug
Open

fix error if ULF_from_maneuver == True#1042
cmbenne3 wants to merge 3 commits intoOpenMDAO:mainfrom
cmbenne3:max_maneuver_bug

Conversation

@cmbenne3
Copy link
Copy Markdown
Contributor

@cmbenne3 cmbenne3 commented Mar 24, 2026

Summary

Fixed a bug that would cause failure if ULF_from_maneuver == True.
local variable max_maneuver_factor was not available at the point in the code where it was required if this branch of logic was triggered.

Do you think we should add tests to design_load.py to test all logic branches or is that overkill for this component?

Related Issues

  • Resolves #

Backwards incompatibilities

None

New Dependencies

None

@cmbenne3 cmbenne3 requested a review from xjjiang March 24, 2026 17:33
@cmbenne3
Copy link
Copy Markdown
Contributor Author

@xjjiang - if this makes more sense to incorporate into one of your PRs let's do that and close this without merging it.

@Kenneth-T-Moore
Copy link
Copy Markdown
Member

Summary

Do you think we should add tests to design_load.py to test all logic branches or is that overkill for this component?

This bug went uncaught because there wasn't a test, so yes. Testing every branch is never overkill.

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.

2 participants