Commit c9313696 authored by Christian Schneider's avatar Christian Schneider
Browse files

Bugfix for circlefit

parent 083af882
......@@ -373,7 +373,7 @@ class Notch(circuit):
# Notch model
value = (self.a*np.exp(1j*self.alpha)*(1 - self.Ql/self.absQc*
np.exp(1j*self.phi0)/
(1. + 2j * self.Ql*(self.freq /
(1. + 2j * self.Ql*(freqs /
self.fr - 1))))
# Subtract Background
try:
......@@ -385,7 +385,7 @@ class Notch(circuit):
pass
# Electric delay
value *= np.exp(-2j * np.pi * self.freq * self.delay)
value *= np.exp(-2j * np.pi * freqs * self.delay)
return value
......@@ -470,6 +470,6 @@ class Reflection(circuit):
pass
# Electric delay
value *= np.exp(-2j * np.pi * self.freq * self.delay)
value *= np.exp(-2j * np.pi * freqs * self.delay)
return value
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment