Skip to content
This repository was archived by the owner on Mar 19, 2025. It is now read-only.

Commit dc8b420

Browse files
committed
Prep for bug fix release needed for backward compatibility with Ginga
1 parent 164b4d2 commit dc8b420

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ exclude = extern,sphinx
1919

2020
[metadata]
2121
package_name = stginga
22-
version = 0.2.1.dev
22+
version = 0.2.1
2323
description = Ginga products specific to STScI data analysis
2424
long_description = Ginga products specific to STScI data analysis
2525
author = STScI

stginga/plugins/MosaicAuto.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,15 @@ def hl_canvas2table(self, canvas, button, data_x, data_y):
298298
imname_from_table = list(self.treeview.get_selected())
299299
n = len(imname_from_table)
300300

301+
# Get selected polygons
302+
try:
303+
poly_items = obj.get_items_at(data_x, data_y)
304+
except TypeError: # ginga >= 2.6.5
305+
poly_items = obj.get_items_at((data_x, data_y))
306+
301307
# Select if not selected and vice versa,
302308
# also do the same to table listing.
303-
for poly in obj.get_items_at((data_x, data_y)):
309+
for poly in poly_items:
304310
imname = poly.imname
305311
treepath = (imname, )
306312

0 commit comments

Comments
 (0)