Adapt to: adcc/PR#169 gauge origin dependent operator integrals#16
Conversation
|
|
||
|
|
||
| def sos_mcd_bterm(state, final_state=0): | ||
| # Note: there exists only reference data for the gauge origin placed at the |
There was a problem hiding this comment.
But this function can also be called with a normal ExcitedStates object and not only with a MockExcitedStates object, right? I think for the former the gauge selection should still be possible and also the magnetic properties need to be adapted.
There was a problem hiding this comment.
I thought this function was for testing purposes only.
See lines 110 and 111: An ExcitedStates object does not have these properties, nor does a State2States object. Thus, the function is only meant for the MockExcitedStates object.
110 s2s_tdm = state.transition_dipole_moment_s2s
111 s2s_tdm_mag = state.transition_magnetic_moment_s2s
There was a problem hiding this comment.
I think this used to work before the State2States class was introduced. But okay, for now, it is okay then, I guess. But maybe we could think about changing this in the future.
Changes
ToDo