Skip to content

Commit bbd0f77

Browse files
committed
Deprecate RFNetwork in favour of pathsim-rf package
1 parent c2a653d commit bbd0f77

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

src/pathsim/blocks/rf.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,8 @@
88
##
99
#########################################################################################
1010

11-
# TODO LIST
12-
# class RFAmplifier Model amplifier in RF systems
13-
# class Resistor/Capacitor/Inductor
14-
# class RFMixer for mixer in RF systems?
15-
16-
1711
# IMPORTS ===============================================================================
12+
1813
from __future__ import annotations
1914

2015
import numpy as np
@@ -38,10 +33,17 @@
3833

3934
from .lti import StateSpace
4035

36+
from ..utils.deprecation import deprecated
37+
4138

4239
# BLOCK DEFINITIONS =====================================================================
4340

4441

42+
@deprecated(
43+
version="1.0.0",
44+
replacement="pathsim_rf.RFNetwork",
45+
reason="This block has moved to the pathsim-rf package: pip install pathsim-rf",
46+
)
4547
class RFNetwork(StateSpace):
4648
"""N-port RF network linear time invariant (LTI) multi input multi output (MIMO) state-space model.
4749
@@ -78,7 +80,7 @@ def __init__(self, ntwk: NetworkType | str | Path, auto_fit: bool = True, **kwar
7880
_msg = "The scikit-rf package is required to use this block -> 'pip install scikit-rf'"
7981
raise ImportError(_msg)
8082

81-
if isinstance(ntwk, Path) or isinstance(ntwk, str):
83+
if isinstance(ntwk, (Path, str)):
8284
ntwk = rf.Network(ntwk)
8385

8486
# Select the vector fitting function from scikit-rf

0 commit comments

Comments
 (0)