What's Changed
Important Changes in Media
The Media class has been refactored to simplify the API and avoid confusions related to the impedances. The z0
property now returns by default the Characteristic Impedance of the media (also available from z0_characteristic
) if the property z0_override
is defined, z0
returns z0_override
instead of the Characteristic Impedance.
The embed
argument and the parameters Z0
(capital) have been deprecated. If the property z0_port
is defined, all lines will be renormalized from z0
to z0_port
, like in a measurement with z0_port
. Please refer to the Media tutorial more additional information and a clear explanation of the different between port and characteristic impedances.
New Features
New properties have been added to a Network: maximum stable gain (max_stable_gain
), Maximum available power gain (max_gain
) and Mason's unilateral gain (unilateral_gain
)
Improvements
- Vectorize drop_non_monotonic_increasing by @eendebakpt in #882
- Improve performance network.copy by @eendebakpt in #875
Bug Fixes
- Make Network.copy also copy params dict by @cafeclimber in #887
- Fix incorrect z0 handling in SeriesImpedance and ShuntAdmittance by @Ttl in #885
- Handle non-zero length thru in TRL by @Ttl in #896
- Resolve singularities for matched thru and line in determine_reflect by @eendebakpt in #870
- Timescale by @FranzForstmayr in #900
- Allow NISTMultilineTRL to work with non-exact floats by @eendebakpt in #895
- Handle division by zero in stability by @Ttl in #910
Code Quality/CI
- Create dependabot.yml by @jhillairet in #898
- [pre-commit] ruff by @jhillairet in #892
- disable upper limits by @FranzForstmayr in #893
Documentation
- Prepare media tutorial for characteristic impedance implementation change by @mhuser in #888
- Fix doc links from Circuit tutorial to Circuit convenience methods by @caryan in #897
- just fixing a small typo I spotted :-) by @Patarimi in #876
- Fix docstring for Frequency.unit by @eendebakpt in #879
- URL updated. by @wollmich in #881
- Fix installation documentation by @jhillairet in #907
New Contributors
- @Patarimi made their first contribution in #876
- @wollmich made their first contribution in #881
- @caryan made their first contribution in #897
Full Changelog: v.0.26.0...v0.27.0