You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
would be nice to provide a shortcut to compute frequency from wavelength as we use frequency generally internally and lots of users work with wavelengths. In our examples and internally, we often have freq = td.C_0 / wavelength, but it would be nice for users to do this conversion without needing to know the formula.
Add a new utility function td.frequency(wavelength) that computes the frequency from a wavelength in um.
Perhaps we can define it in tidy3d/constants.py.
Then we should probably replace all instances of td.C_0 / wavelength with this function in both the source code and also the docs.
The text was updated successfully, but these errors were encountered:
would be nice to provide a shortcut to compute frequency from wavelength as we use frequency generally internally and lots of users work with wavelengths. In our examples and internally, we often have
freq = td.C_0 / wavelength
, but it would be nice for users to do this conversion without needing to know the formula.Add a new utility function
td.frequency(wavelength)
that computes the frequency from a wavelength inum
.Perhaps we can define it in
tidy3d/constants.py
.Then we should probably replace all instances of
td.C_0 / wavelength
with this function in both the source code and also the docs.The text was updated successfully, but these errors were encountered: