@@ -581,7 +581,7 @@ def test_make_path_integrals_validation():
581
581
microwave_spec = td .MicrowaveModeSpec (impedance_specs = (impedance_spec ,))
582
582
583
583
# Test successful creation
584
- voltage_integrals , current_integrals = make_path_integrals (microwave_spec , mode_monitor )
584
+ voltage_integrals , current_integrals = make_path_integrals (microwave_spec )
585
585
assert len (voltage_integrals ) == 1
586
586
assert len (current_integrals ) == 1
587
587
assert voltage_integrals [0 ] is not None
@@ -590,7 +590,7 @@ def test_make_path_integrals_validation():
590
590
# Test with None specs - when both are None, use_automatic_setup is True
591
591
# This means current integrals will be auto-generated, not None
592
592
microwave_spec_none = td .MicrowaveModeSpec (impedance_specs = (None ,))
593
- voltage_integrals , current_integrals = make_path_integrals (microwave_spec_none , mode_monitor )
593
+ voltage_integrals , current_integrals = make_path_integrals (microwave_spec_none )
594
594
assert len (voltage_integrals ) == mode_monitor .mode_spec .num_modes
595
595
assert len (current_integrals ) == mode_monitor .mode_spec .num_modes
596
596
assert all (vi is None for vi in voltage_integrals )
@@ -600,9 +600,6 @@ def test_make_path_integrals_validation():
600
600
def test_make_path_integrals_construction_errors (monkeypatch ):
601
601
"""Test that make_path_integrals handles construction errors properly."""
602
602
603
- sim = make_mw_sim (False , False , "microstrip" )
604
- mode_monitor = sim .monitors [0 ]
605
-
606
603
# Create a valid spec
607
604
v_spec = td .AxisAlignedVoltageIntegralSpec (center = (1 , 2 , 3 ), size = (0 , 0 , 1 ), sign = "-" )
608
605
@@ -620,7 +617,7 @@ def mock_make_voltage_integral(path_spec):
620
617
621
618
# This should raise a SetupError due to construction failure
622
619
with pytest .raises (SetupError , match = "Failed to construct path integrals" ):
623
- make_path_integrals (microwave_spec , mode_monitor )
620
+ make_path_integrals (microwave_spec )
624
621
625
622
626
623
def test_path_integral_factory_composite_current ():
@@ -658,9 +655,6 @@ def test_path_integral_factory_composite_current():
658
655
def test_path_integral_factory_mixed_specs ():
659
656
"""Test make_path_integrals with mixed voltage and current specs (some None)."""
660
657
661
- sim = make_mw_sim (False , False , "microstrip" )
662
- mode_monitor = sim .monitors [0 ]
663
-
664
658
# Create specs where some are None
665
659
v_spec = td .AxisAlignedVoltageIntegralSpec (center = (1 , 2 , 3 ), size = (0 , 0 , 1 ), sign = "-" )
666
660
i_spec = td .AxisAlignedCurrentIntegralSpec (center = (1 , 2 , 3 ), size = (0 , 1 , 1 ), sign = "-" )
@@ -675,7 +669,7 @@ def test_path_integral_factory_mixed_specs():
675
669
),
676
670
)
677
671
678
- voltage_integrals , current_integrals = make_path_integrals (microwave_spec , mode_monitor )
672
+ voltage_integrals , current_integrals = make_path_integrals (microwave_spec )
679
673
680
674
assert len (voltage_integrals ) == 2
681
675
assert len (current_integrals ) == 2
0 commit comments