Skip to content

Commit

Permalink
Prep for bug fix release needed for backward compatibility with Ginga
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed Jul 21, 2017
1 parent 164b4d2 commit dc8b420
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exclude = extern,sphinx

[metadata]
package_name = stginga
version = 0.2.1.dev
version = 0.2.1
description = Ginga products specific to STScI data analysis
long_description = Ginga products specific to STScI data analysis
author = STScI
Expand Down
8 changes: 7 additions & 1 deletion stginga/plugins/MosaicAuto.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,15 @@ def hl_canvas2table(self, canvas, button, data_x, data_y):
imname_from_table = list(self.treeview.get_selected())
n = len(imname_from_table)

# Get selected polygons
try:
poly_items = obj.get_items_at(data_x, data_y)
except TypeError: # ginga >= 2.6.5
poly_items = obj.get_items_at((data_x, data_y))

# Select if not selected and vice versa,
# also do the same to table listing.
for poly in obj.get_items_at((data_x, data_y)):
for poly in poly_items:
imname = poly.imname
treepath = (imname, )

Expand Down

0 comments on commit dc8b420

Please sign in to comment.