restore changes
@@ -12,11 +12,12 @@ cpw (:mod:`skrf.media.cpw`)
"""
from scipy.constants import epsilon_0, mu_0
from scipy.special import ellipk
-from numpy import pi, sqrt, log, zeros, ones
+from numpy import pi, sqrt, log, zeros, ones, any
from .media import Media
-from ..tlineFunctions import surface_resistivity
+from ..tlineFunctions import surface_resistivity, skin_depth
from ..constants import NumberLike
from typing import Union, TYPE_CHECKING
+import warnings
if TYPE_CHECKING:
from .. frequency import Frequency
@@ -190,7 +191,7 @@ class CPW(Media):
"""
beta = 1j*2*pi*self.frequency.f*sqrt(self.ep_re*epsilon_0*mu_0)
alpha = zeros(len(beta))
- if self.rho is not None and self.t is not None:
+ if self.rho is not None:
alpha = self.alpha_conductor
return beta+alpha
