baccuslab / pyret

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

fixing bug in nonlinearities.Sigmoid #90

Closed lmcintosh closed 7 years ago

lmcintosh commented 7 years ago

There was a bug in nonlinearities.Sigmoid where the parameters returned are mislabeled. For instance, the reported threshold was actually the peak of the sigmoid, the slope of the sigmoid was actually the threshold, and so on. The origin of the bug is a different ordering in the parameters of the internal _sigmoid function and the external-facing Sigmoid(). This PR fixes the different ordering in the internal _sigmoid function.