fix pna docstring in get_snp_networ
@@ -222,7 +222,11 @@ class PNA(abcvna.VNA):
ports : Iterable
a iterable of integers designating the ports to query
kwargs : dict
- channel(int), sweep(bool), name(str), f_unit(str), corrected(bool)
+ channel(int) [ default 'self.active_channel' ]
+ sweep(bool) [default True]
+ name(str) [defaut \"\"]
+ f_unit(str) [ default \"GHz\" ]
+ raw_data(bool) [default False]
Returns
-------
@@ -235,7 +239,7 @@ class PNA(abcvna.VNA):
# force activate channel to avoid possible errors:
self.active_channel = channel = kwargs.get("channel", self.active_channel)
- sweep = kwargs.get("sweep", False)
+ sweep = kwargs.get("sweep", True)
name = kwargs.get("name", "")
f_unit = kwargs.get("f_unit", "GHz")
raw_data = kwargs.get("raw_data", False)
@@ -260,6 +264,7 @@ class PNA(abcvna.VNA):
else:
data = self.scpi.query_snp_data(channel, ports)
self.scpi.set_snp_format(snp_fmt) # restore the value before we got the RI data
+ self.scpi.set_snp_format(snp_fmt) # restore the value before we got the RI data
nrows = int(len(data) / npoints)
nports = int(np.sqrt(nrows - 1))
