@@ -402,7 +402,7 @@ def test_microstrip_models():
402
402
freqs = Frequency (start = 1 , stop = 1 , npoints = 1 , unit = "ghz" )
403
403
mline = MLine (frequency = freqs , w = width , h = height , t = thickness , ep_r = eps_r , disp = "none" )
404
404
405
- assert np .isclose (Z0 , mline .Z0 [0 ])
405
+ assert np .isclose (Z0 , mline .z0 [0 ])
406
406
assert np .isclose (eps_eff , mline .ep_reff [0 ])
407
407
408
408
# Check end effect length computation
@@ -414,7 +414,7 @@ def test_microstrip_models():
414
414
Z0 , eps_eff = mw .models .microstrip .compute_line_params (eps_r , width , height , thickness )
415
415
mline = MLine (frequency = freqs , w = width , h = height , t = thickness , ep_r = eps_r , disp = "none" )
416
416
417
- assert np .isclose (Z0 , mline .Z0 [0 ])
417
+ assert np .isclose (Z0 , mline .z0 [0 ])
418
418
assert np .isclose (eps_eff , mline .ep_reff [0 ])
419
419
420
420
@@ -667,7 +667,7 @@ def test_lobe_measurer_validation():
667
667
668
668
Urad = np .cos (theta ) + 1j * np .sin (theta )
669
669
# Raise error when radiation pattern is complex
670
- with pytest .raises (pd .ValidationError ):
670
+ with pytest .raises (pd .ValidationError ), pytest . warns ( np . exceptions . ComplexWarning ) :
671
671
mw .LobeMeasurer (
672
672
angle = theta ,
673
673
radiation_pattern = Urad ,
@@ -794,4 +794,3 @@ def test_lobe_plots(min_value):
794
794
_ , ax = plt .subplots (1 , 1 , subplot_kw = {"projection" : "polar" })
795
795
ax .plot (theta , Urad , "k" )
796
796
lobe_measurer .plot (0 , ax )
797
- plt .show ()
0 commit comments