Skip to content

Commit

Permalink
Fix line too long
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed Jun 13, 2023
1 parent 7f24b43 commit 41a8197
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion glue_astronomy/translators/regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ def to_object(self, subset):
'pixel coordinate')
if len(subset_state.pairs) == 0:
raise ValueError('Multirange subset state should contain at least one range')
region = range_to_rect(subset.data, ori, subset_state.pairs[0][0], subset_state.pairs[0][1])
region = range_to_rect(
subset.data, ori, subset_state.pairs[0][0], subset_state.pairs[0][1])
for pair in subset_state.pairs[1:]:
region = region | range_to_rect(subset.data, ori, pair[0], pair[1])
return region
Expand Down
3 changes: 2 additions & 1 deletion glue_astronomy/translators/tests/test_regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
from numpy.testing import assert_allclose, assert_array_equal, assert_equal
from packaging.version import Version

from regions import (RectanglePixelRegion, RectangleSkyRegion, PolygonPixelRegion, CirclePixelRegion,
from regions import (RectanglePixelRegion, RectangleSkyRegion,
PolygonPixelRegion, CirclePixelRegion,
EllipsePixelRegion, PointPixelRegion, CompoundPixelRegion,
CircleAnnulusPixelRegion, PixCoord)

Expand Down

0 comments on commit 41a8197

Please sign in to comment.