-
Notifications
You must be signed in to change notification settings - Fork 637
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
Expose more ldos data #581
Conversation
doc/docs/Python_User_Interface.md
Outdated
— | ||
Compute the power spectrum of the sources (usually a single point dipole source), normalized to correspond to the LDOS, in a frequency bandwidth `df` centered at `fcen`, at `nfreq` frequency points. | ||
Compute the power spectrum of the sources (usually a single point dipole source), normalized to correspond to the LDOS, in a frequency bandwidth `df` centered at `fcen`, at `nfreq` frequency points. One can also pass in an `ldos` created with `DftLdos` as `dft_ldos(ldos=my_ldos)`. This is useful for passing to `get_ldos_freqs` or accessing C++ properties like `ldos.omega_min`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it should be ldos.freqs()
instead of get_ldos_freqs(ldos)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Probably |
For reference, here is the email that prompted this PR:
|
* Expose more ldos data * Rename omega to freqs and make get_ldos_freqs a method of Ldos
A user on the mailing list wanted programmatic access to ldos data printed by the step function
mp.dft_ldos
. I added a publicDftLdos
function that returns a C++dft_ldos
that can then bemp.dft_ldos
mp.get_ldos_freqs
dft_ldos::omega_min
@stevengj @oskooi