| 1 | from pathlib import Path |
| 2 | |
| 3 | import pytest |
| 4 | |
| 5 | import skrf as rf |
| 6 | |
| 7 | testdir = Path(__file__).parent |
| 8 | |
| 9 | @pytest.fixture() |
| 10 | def ntwk1() -> rf.Network: |
| 11 | return rf.Network(testdir / "ntwk1.s2p") |
| 12 | |
| 13 | @pytest.fixture() |
| 14 | def ntwk1_dc(ntwk1: rf.Network) -> rf.Network: |
| 15 | return ntwk1.extrapolate_to_dc() |
| 16 | |
| 17 | @pytest.fixture() |
| 18 | def ntwk_set_zip() -> rf.NetworkSet: |
| 19 | return rf.NetworkSet.from_zip(testdir / "ntwks.zip") |