Skip to content

Commit

Permalink
Merge pull request #18 from sot/no-sherpa-ds9-warning
Browse files Browse the repository at this point in the history
Silence the sherpa warning about DS9 not being available
  • Loading branch information
taldcroft authored Mar 17, 2022
2 parents 21bdc67 + c6bef72 commit 14b3b44
Showing 1 changed file with 7 additions and 0 deletions.
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

0 comments on commit 14b3b44

Please sign in to comment.