Skip to content

Commit 4d6a8e7

Browse files
authored
fix whitespace errors (#181)
1 parent 6eb5392 commit 4d6a8e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

impedance/models/circuits/fitting.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def circuit_fit(frequencies, impedances, circuit, initial_guess, constants={},
140140
popt, pcov = curve_fit(wrapCircuit(circuit, constants), frequencies,
141141
np.hstack([Z.real, Z.imag]),
142142
p0=initial_guess, bounds=bounds, **kwargs)
143-
143+
144144
# Calculate one standard deviation error estimates for fit parameters,
145145
# defined as the square root of the diagonal of the covariance matrix.
146146
# https://stackoverflow.com/a/52275674/5144795
@@ -194,7 +194,7 @@ def __call__(self, **kwargs):
194194
# jacobian -> covariance
195195
# https://stats.stackexchange.com/q/231868
196196
pcov = inv(np.dot(jac.T, jac)) * opt_function(popt) ** 2
197-
# covariance -> perror (one standard deviation
197+
# covariance -> perror (one standard deviation
198198
# error estimates for fit parameters)
199199
perror = np.sqrt(np.diag(pcov))
200200
except (ValueError, np.linalg.LinAlgError):

0 commit comments

Comments
 (0)