baccuslab / pyret

Python tools for analysis of neurophysiology data
https://pyret.readthedocs.io/en/master/
MIT License
35 stars 8 forks source link

filtertools.get_ellipse does not handle surrounds well #66

Closed nirum closed 8 years ago

nirum commented 8 years ago

In filtertools.get_ellipse, the curve fitting tool gets tripped up when there are strong or large spatial surrounds.

one potential fix: clip negative values to remove the surround before fitting the ellipse