Run shift current

Description of your first forum.
Post Reply
fxm1
Posts: 8
Joined: Fri Jan 23, 2026 11:52 am

Run shift current

Post 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
User avatar
claudio
Posts: 16
Joined: Sat Oct 25, 2025 11:27 am

Re: Run shift current

Post 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
Claudio Attaccalite
[CNRS/ Aix-Marseille Université/ CINaM laborarory / TSN department
Campus de Luminy – Case 913
13288 MARSEILLE Cedex 09
web site: http://www.attaccalite.com
Post Reply