Skip to content

Minor refactor to orbit.matching to remove unused imports, wildcard imports, and guards against missing numpy/scipy#101

Open
woodtp wants to merge 3 commits intoPyORBIT-Collaboration:mainfrom
woodtp:fix/remove-unused-import
Open

Minor refactor to orbit.matching to remove unused imports, wildcard imports, and guards against missing numpy/scipy#101
woodtp wants to merge 3 commits intoPyORBIT-Collaboration:mainfrom
woodtp:fix/remove-unused-import

Conversation

@woodtp
Copy link
Contributor

@woodtp woodtp commented Dec 17, 2025

Missing dependencies of matplotlib, numpy, and scipy was causing the documentation build in #100 to fail (if they are not installed). After searching for places where these packages are imported, I found that py/orbit/matching/matching.py performs a wildcard import from matplotlib. As far as I understand, we don't really want to depend on matplotlib outside of examples/. Furthermore, this code doesn't seem to actually depend on it, so I'm removing the import.

@woodtp woodtp requested a review from azukov December 17, 2025 22:50
@woodtp woodtp self-assigned this Dec 17, 2025
@woodtp woodtp added the bug Something isn't working label Dec 17, 2025
@woodtp woodtp mentioned this pull request Dec 17, 2025
9 tasks
@austin-hoover
Copy link
Contributor

@azukov is this module planning to stay in PyORBIT? Re: our discussion last week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants