skrf.calibration.calibration.TwoPortOnePath.run

TwoPortOnePath.run()[source]
if self.sp !=0:
raise NotImplementedError(‘not implemented yet. you can just flip() all your data though. ‘)

n_thrus = self.n_thrus p1_m = [k.s11 for k in self.measured[:-n_thrus]] p1_i = [k.s11 for k in self.ideals[:-n_thrus]] thru = NetworkSet(self.measured[-n_thrus:]).mean_s

# create one port calibration for reflective standards port1_cal = OnePort(measured = p1_m, ideals = p1_i)

# cal coefficient pdictionaries p1_coefs = port1_cal.coefs

if self.kwargs.get(‘isolation’,None) is not None:
raise NotImplementedError() p1_coefs[‘isolation’] = isolation.s21.s.flatten()
else:
p1_coefs[‘isolation’] = npy.zeros(len(thru), dtype=complex)

p1_coefs[‘load match’] = port1_cal.apply_cal(thru.s11).s.flatten() p1_coefs[‘transmission tracking’] = (thru.s21.s.flatten() - p1_coefs.get(‘isolation’,0))* (1. - p1_coefs[‘source match’]*p1_coefs[‘load match’])

coefs = {}