Page 1 of 1

Run shift current

Posted: Mon Mar 16, 2026 10:37 am
by fxm1
Dear developers,
I am currently working on running the nonlinear shift current calculation. I have installed yambopy following the official steps, and I am using the latest official script with yambopy version v0.7.1. However, I encountered the following error when running the code:

Traceback (most recent call last):
File "/home/hipeson/cying/1.py", line 6, in <module>
from yambopy.nl.harmonic_analysis import Harmonic_Analysis
ModuleNotFoundError: No module named 'yambopy.nl.harmonic_analysis'

How can I fix this issue?

Thanks!
xiaomeng

Re: Run shift current

Posted: Tue Mar 17, 2026 1:40 pm
by claudio
Dear xiaomeng

we updated yambopy and also the name of the subroutines,
just remove the line

from yambopy.nl.harmonic_analysis import Harmonic_Analysis

and it should work

best
Claudio