Closed ma-sadeghi closed 2 months ago
This is a nasty bug! Essentially, when curve_fit fails to converge using the initial guess p0, it keeps trying using the same p0! Solution: Replace continue with pass.
curve_fit
p0
continue
pass
https://github.com/AUTODIAL/AutoEIS/blob/f15788e63c652434719f2852c89a24e65a436c18/src/autoeis/utils.py#L505-L515
This is a nasty bug! Essentially, when
curve_fit
fails to converge using the initial guessp0
, it keeps trying using the samep0
! Solution: Replacecontinue
withpass
.https://github.com/AUTODIAL/AutoEIS/blob/f15788e63c652434719f2852c89a24e65a436c18/src/autoeis/utils.py#L505-L515