Skip to content

Commit

Permalink
Merge pull request #2280 from pllim/patch-1
Browse files Browse the repository at this point in the history
Ellipse: Do not throw error for theta=0
  • Loading branch information
astrofrog authored Mar 17, 2022
2 parents a94b63e + 519874b commit 1843787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glue/core/roi.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ class EllipticalROI(Roi):

def __init__(self, xc=None, yc=None, radius_x=None, radius_y=None, theta=None):
super(EllipticalROI, self).__init__()
if theta is not None:
if theta is not None and theta != 0:
raise NotImplementedError("Rotated ellipses are not yet supported")
self.xc = xc
self.yc = yc
Expand Down

0 comments on commit 1843787

Please # to comment.