-
-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using SI Units #935
Using SI Units #935
Conversation
jhillairet
commented
Jul 21, 2023
- use Hz instead of GHz as new default
- use second instead of nanosecond as new default
Any comments on this PR? Did I miss something somewhere? |
What is the default frequency unit in v0.30.0, Hz or GHz? |
Since this PR has been merged and version 0.29.0, it should be SI (Hz). Did you meet an issue? |
Yes, but I think one of my co-developers has answered it:
I'm checking to see if this is my problem, now. Thanks for responding so quickly! |
Nope, that wasn't it. I'm able to fix things, by making this change to my code: @@ -1255,11 +1256,11 @@ def interp_s2p(ntwk, f):
assert rs == cs, "Non-square Touchstone file S-matrix!"
assert rs == 2, "Touchstone file must have 2 ports!"
- extrap = ntwk.interpolate(f, fill_value="extrapolate", coords="polar", assume_sorted=True)
+ extrap = ntwk.interpolate(f*1e-9, fill_value="extrapolate", coords="polar", assume_sorted=True)
s11 = cap_mag(extrap.s[:, 0, 0])
s22 = cap_mag(extrap.s[:, 1, 1])
- s12 = ntwk.s12.interpolate(f, fill_value=0, bounds_error=False, coords="polar", assume_sorted=True).s.flatten()
- s21 = ntwk.s21.interpolate(f, fill_value=0, bounds_error=False, coords="polar", assume_sorted=True).s.flatten()
+ s12 = ntwk.s12.interpolate(f*1e-9, fill_value=0, bounds_error=False, coords="polar", assume_sorted=True).s.flatten()
+ s21 = ntwk.s21.interpolate(f*1e-9, fill_value=0, bounds_error=False, coords="polar", assume_sorted=True).s.flatten() Is it possible that the I've checked the |
Sorry, please ignore my comments above. |