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

Silence the sherpa warning about DS9 not being available #18

Merged
merged 1 commit into from
Mar 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions find_attitude/find_attitude.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,13 @@ def find_attitude_for_agasc_ids(yags, zags, agasc_id_star_map):
"""
global yagzag

# Squelch the useless warning below prior to import. Since this application
# does not dealing with image data we don't worry about silencing these.
# WARNING: imaging routines will not be available,
# failed to import sherpa.image.ds9_backend due to
# 'RuntimeErr: DS9Win unusable: Could not find ds9 on your PATH'
logging.getLogger('sherpa.image').setLevel(logging.ERROR)

from sherpa import ui
import agasc
from Quaternion import Quat
Expand Down