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

Fixed an issue where matplotlib was not required to install dymos without specifications but would fail to import. #1035

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

robfalck
Copy link
Contributor

Summary

There were some "bare" imports of matplotlib in the dymos source code that would be executed when import dymos was invoked. Since basic dymos usage doesn't require matplotlib, it was not listed as a prerequisite except when a modifier like pip install dymos[tests] were used.

These bare imports have been moved into more local scopes where they will cause import errors if those particular methods or functions are invoked, but importing dymos will proceed without issue.

Related Issues

Backwards incompatibilities

None

New Dependencies

None

@robfalck robfalck requested a review from swryan January 19, 2024 15:22
@coveralls
Copy link

Coverage Status

coverage: 92.075% (-0.2%) from 92.294%
when pulling 524e8bf on robfalck:i1025
into 8afa8ec on OpenMDAO:master.

@robfalck robfalck merged commit 7e24a7f into OpenMDAO:master Jan 19, 2024
10 checks passed
@robfalck robfalck deleted the i1025 branch August 14, 2024 15:32
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.

matplotlib is required even when dymos is installed with no extras
3 participants