Temporary fix for convert_8term_2_12term function, to include isolation terms as zero if none are provided.  Better is to fix the 8-term calibrations to have isolation terms, but that will take more care and time
Also fixed the docstring for the Calibration.coefs_12term, to include the isolation terms
@@ -164,7 +164,6 @@ class Calibration(object):
`coefs..ntwks` returns error coefficients. If the property coefs
is accessed and empty, then :func:`Calibration.run` is called.
-
'''
family = ''
def __init__(self, measured, ideals, sloppy_input=False,
@@ -673,11 +672,13 @@ class Calibration(object):
* forward reflection tracking
* forward transmission tracking
* forward load match
+ * forward isolation
* reverse directivity
* reverse load match
* reverse reflection tracking
* reverse transmission tracking
* reverse source match
+ * reverse isolation
Notes
--------
@@ -4378,8 +4379,11 @@ def convert_8term_2_12term(coefs_8term):
coefs_12term['reverse load match'] = Elr
coefs_12term['forward transmission tracking'] = Etf
coefs_12term['reverse transmission tracking'] = Etr
+ coefs_12term['forward isolation'] = coefs_8term.get("forward isolation", npy.zeros_like(Elf))
+ coefs_12term['reverse isolation'] = coefs_8term.get("reverse isolation", npy.zeros_like(Elf))
return coefs_12term
+
def convert_pnacoefs_2_skrf(coefs):
'''
Convert PNA error coefficients to skrf error coefficients
