Skip to content

Commit

Permalink
raman | fix for legacy TDEP output files
Browse files Browse the repository at this point in the history
  • Loading branch information
flokno committed Dec 19, 2024
1 parent feafca2 commit 12bbc3f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tdeptools/scripts/tdep_compute_raman_intensities.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,16 @@ def main(
I_q *= factor_to_amu

# create a dataframe for mode intensities
if "peak_mid" in ds:
echo("... use harmonic frequencies INCLUDING thermal shift")
_frequency = ds.peak_mid
else:
echo("... use bare harmonic frequencies WIHOUT thermal shift")
_frequency = ds.harmonic_frequencies
data = {
"imode": np.arange(n_modes),
"frequency": ds.peak_mid,
"frequency_cm": unit * ds.peak_mid,
"frequency": _frequency,
"frequency_cm": unit * _frequency,
"raman_activity_isotropic": I_q.round(decimals=decimals),
"raman_activity_unpolarized": I_q_po.round(decimals=decimals),
}
Expand Down

0 comments on commit 12bbc3f

Please sign in to comment.