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

Fix for failing multi-engine tests. #618

Closed
wants to merge 6 commits into from

Conversation

Kenneth-T-Moore
Copy link
Member

Summary

Summary of PR.

Related Issues

  • Resolves #

Backwards incompatibilities

None

New Dependencies

None

Comment on lines +410 to +413
try:
aviary_options.get_val(var)
except KeyError:
aviary_options.set_val(var, np.zeros(num_engine_type))
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this might be more clear?

Suggested change
try:
aviary_options.get_val(var)
except KeyError:
aviary_options.set_val(var, np.zeros(num_engine_type))
if key not in aviary_options:
aviary_options.set_val(var, np.zeros(num_engine_type))

@jkirk5 jkirk5 mentioned this pull request Dec 6, 2024
@Kenneth-T-Moore
Copy link
Member Author

Hotfixed by #622 for now. New solution will involve working with the defaults so that they are broadcast out to the correct size.

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