Skip to content

Commit

Permalink
Fixes 🐛 where the (x,y)-center in get_ellipse was flipped (was return…
Browse files Browse the repository at this point in the history
…ing (y, x))
  • Loading branch information
Niru Maheswaranathan committed Apr 26, 2016
1 parent 03b8535 commit c23fe4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyret/filtertools.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ def _gaussian_function(data, x0, y0, a, b, c):
return np.exp(-0.5 * (a * xc**2 + 2 * b * xc * yc + c * yc**2))


def _popt_to_ellipse(x0, y0, a, b, c, scale=3.0):
def _popt_to_ellipse(y0, x0, a, b, c, scale=3.0):
"""
Converts the parameters (center and terms in the precision matrix) for a 2D
gaussian function into ellipse parameters (center, widths, and rotation)
Expand Down

0 comments on commit c23fe4e

Please sign in to comment.