-
Notifications
You must be signed in to change notification settings - Fork 100
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
Fixes + new plotting functions #308
Conversation
…igenenergies of the four states in delta SCF.
…igenenergies of the four states in delta SCF.
…nction. + Adapt the ifc embedding tests with the correction of the asr formula
@@ -16,13 +16,13 @@ | |||
|
|||
|
|||
try: | |||
import phonopy | |||
import phonopy |
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.
phonopy now is listed in requirements.txt so we don't need to catch ImportError
abipy/lumi/lineshape.py
Outdated
ax.set_xlabel('Phonon energy (eV)') | ||
ax.set_ylabel(r'$S(\hbar\omega)$ (1/eV)') | ||
|
||
return |
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.
Again, I would this function to return a Figure instance
abipy/lumi/lineshape.py
Outdated
ax.set_ylabel(r'Intensity (a.u.)') | ||
x_eV,y_eV=self.L_hw(T=T,lamb=lamb,w=w) | ||
plot_emission_spectrum_help(x_eV,y_eV,unit,max_to_one,ax,**kwargs) | ||
return |
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.
return plot_emission_spectrum_help
?
abipy/lumi/utils_lumi.py
Outdated
ax.set_xlabel(r'Photon wavelength (nm))') | ||
ax.set_ylabel(r'Intensity (a.u.)') | ||
|
||
return |
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.
The decorator add_fig_kwargs expected the decorated function to return a matplotlib figure
abipy/lumi/utils_lumi.py
Outdated
|
||
G_t = np.exp(S-S_0+C_plus+C_minus-2*C_0) | ||
|
||
return (t, G_t) |
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.
return t, G_t
is more pythonic
Thanks for the PR |
Summary
embedding/embedding_ifc
lumi
dfpt/converters