Skip to content

Commit

Permalink
Allow example to open ASDF file
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed Nov 30, 2018
1 parent 51fe3f4 commit 74b174a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ginga/examples/qt/example_asdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,9 @@ def load_file(self, filepath):
self.setWindowTitle(filepath)

def open_file(self):
res = QtGui.QFileDialog.getOpenFileName(self, "Open FITS file",
".", "FITS files (*.fits)")
res = QtGui.QFileDialog.getOpenFileName(
self, "Open FITS or ASDF file",
".", "FITS/ASDF files (*.fits *.asdf)")
if isinstance(res, tuple):
fileName = res[0]
else:
Expand Down

0 comments on commit 74b174a

Please sign in to comment.