-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Optional opencv #43
Optional opencv #43
Conversation
Huh... Will have to investigate failure later... https://travis-ci.org/astropy/astrowidgets/jobs/420294263 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one minor change....
astrowidgets/core.py
Outdated
try: | ||
from ginga import trcalc | ||
trcalc.use('opencv') | ||
except (ImportError, ModuleNotFoundError) as exc: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like ModuleNotFoundError
is Python 3.6 and up only...but it subclasses from ImportError
so just catching ImportError
should be enough.
Thanks for the help, @mwcraig ! Tests pass now. 🎉 |
Thanks, merging! Hoping to put some concentrated time into this later this week/weekend. |
Fix #31
Also moved dev notes to https://github.com/astropy/astrowidgets/wiki/DevNotes and added link to example notebook to docs.