Skip to content

Commit

Permalink
fix bug that left tau_eff as NaN
Browse files Browse the repository at this point in the history
  • Loading branch information
simonscryo committed Jul 10, 2024
1 parent a7f7e21 commit f6bdc8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sodetlib/operations/complex_impedance.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def fit_det_params(ds, pb=False, fmax=None):
# Compute tau_eff
RL = ds.meta.R_sh
ds._Rfit, ds._beta_I, ds._L_I, ds._tau_I = ds._fit_x.T
ds.tau_eff = ds._tau_I * (1 - ds._L_I) * (1 + ds._beta_I + RL / ds._Rfit) \
ds._tau_eff = ds._tau_I * (1 - ds._L_I) * (1 + ds._beta_I + RL / ds._Rfit) \
/ (1 + ds._beta_I + RL / ds._Rfit + ds._L_I * (1 - RL / ds._Rfit))

for f in fields:
Expand Down

0 comments on commit f6bdc8a

Please sign in to comment.