File: conftest.py

package info (click to toggle)
scikit-rf 1.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 82,128 kB
  • sloc: python: 33,328; makefile: 130; sh: 19
file content (19 lines) | stat: -rw-r--r-- 399 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from pathlib import Path

import pytest

import skrf as rf

testdir = Path(__file__).parent

@pytest.fixture()
def ntwk1() -> rf.Network:
    return rf.Network(testdir / "ntwk1.s2p")

@pytest.fixture()
def ntwk1_dc(ntwk1: rf.Network) -> rf.Network:
    return ntwk1.extrapolate_to_dc()

@pytest.fixture()
def ntwk_set_zip() -> rf.NetworkSet:
    return rf.NetworkSet.from_zip(testdir / "ntwks.zip")