Skip to content

Commit 9dffe05

Browse files
committed
Fix PEP8 errors
1 parent e7e5f5c commit 9dffe05

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

astrowidgets/tests/test_image_widget.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from astropy.table import Table, vstack
66
from astropy.wcs import WCS
77
from astropy.nddata import CCDData
8-
from astropy.coordinates import SkyCoord
98

109
from ..ginga import ImageWidget
1110

@@ -74,8 +73,6 @@ def test_move_callback_includes_offset():
7473
assert float(y_out) == data_y + offset
7574

7675

77-
78-
7976
def test_get_marker_with_names():
8077
# Check a few ways of getting markers out
8178
npix_side = 200

astrowidgets/tests/test_widget_api_ginga.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88
"available.")
99
from astrowidgets.ginga import ImageWidget # noqa: E402
1010

11+
1112
def test_instance():
1213
image = ImageWidget()
1314
assert isinstance(image, ImageViewerInterface)
1415

16+
1517
class TestGingaWidget(ImageWidgetAPITest):
1618
image_widget_class = ImageWidget

astrowidgets/tests/widget_api_test.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,16 +219,14 @@ def test_add_markers(self):
219219
with pytest.raises(ValueError, match='not allowed'):
220220
self.image.add_markers(tab, marker_name=name)
221221

222-
223222
# Add markers with no marker name and check we can retrieve them
224223
# using the default marker name
225-
self.image.add_markers(tab, x_colname='x', y_colname='y',
224+
self.image.add_markers(tab, x_colname='x', y_colname='y',
226225
skycoord_colname='coord')
227226
# Don't care about the order of the marker names so use set instead of
228227
# list.
229228
marknames = self.image._marktags
230-
assert (set(marknames) ==
231-
set(['test2', self.image._default_mark_tag_name]))
229+
assert (set(marknames) == set(['test2', self.image._default_mark_tag_name]))
232230
# assert (set(self.image.get_marker_names()) ==
233231
# set(['test2', self.image._default_mark_tag_name]))
234232

@@ -267,9 +265,9 @@ def test_adding_markers_as_world(self, data, wcs):
267265
np.testing.assert_allclose(result['x'], marks_pix['x'])
268266
np.testing.assert_allclose(result['y'], marks_pix['y'])
269267
np.testing.assert_allclose(result['coord'].ra.deg,
270-
mark_coord_table['coord'].ra.deg)
268+
mark_coord_table['coord'].ra.deg)
271269
np.testing.assert_allclose(result['coord'].dec.deg,
272-
mark_coord_table['coord'].dec.deg)
270+
mark_coord_table['coord'].dec.deg)
273271

274272
def test_stretch(self):
275273
original_stretch = self.image.stretch

0 commit comments

Comments
 (0)