elphondb.py 'HEAD_KPT' error!
Posted: Fri Aug 16, 2024 12:40 pm
Hi yamboers,
I wanted to plot the electron-phonon matrix element over the BZ using yambopy. My python version is 3.10.14. The yambo version used for this calculation was from: https://github.com/attacc/yambo.git yambo-excph.
My SAVE folder contains: ndb.elph_gkkp_expanded* (from 1-324), ndb.PH_Double_Grid, ns.nlcc_pp_pwscf, ns.db1, ndb.gops, ndb.kindx, ns.kb_pp_pwscf*, ns.wf and ns.wf_fragments*
While running the python elph_plot.py, I get this error:
(yambopy) sitangshubhattacharya@Sitangshus-iMac databases_yambopy % python elph_plot.py
37 kpoints expanded to 324
Traceback (most recent call last):
File "/Users/sitangshubhattacharya/yambopy/tutorial/databases_yambopy/elph_plot.py", line 34, in <module>
yelph = YamboElectronPhononDB(ylat,folder_gkkp=save_path+'/SAVE',save=save_path+'/SAVE')
File "/opt/anaconda3/envs/yambopy/lib/python3.10/site-packages/yambopy/dbs/elphondb.py", line 97, in __init__
self.ibz_kpoints_elph = database.variables['HEAD_KPT'][:].T
KeyError: 'HEAD_KPT'
I have tested that the gkkp* files are not bad. I can use them (unexpanded) to obtain all QP energies at variety of temperatures.
I used these parameters in the elph_plot.py script:
i_n, i_m = [25,26] #i_n =25 -> valence band, i_n = 26 -> conduction band
i_nu = 3 # LA phonon mode at K (ZO mode at Gamma); LO, TO modes are i_nu=4,5
i_q = 323 # This is the K-point in the hexagonal BZ
i_k = 323
I tried with the hBN database, but it did not give me this error. Is it related to yambo version? I realized that the hBN database was done on a different version. It does not have ns.nlcc_pp_pwscf file.
A little advise will be very much appreciated.
Regards,
Sitangshu
I wanted to plot the electron-phonon matrix element over the BZ using yambopy. My python version is 3.10.14. The yambo version used for this calculation was from: https://github.com/attacc/yambo.git yambo-excph.
My SAVE folder contains: ndb.elph_gkkp_expanded* (from 1-324), ndb.PH_Double_Grid, ns.nlcc_pp_pwscf, ns.db1, ndb.gops, ndb.kindx, ns.kb_pp_pwscf*, ns.wf and ns.wf_fragments*
While running the python elph_plot.py, I get this error:
(yambopy) sitangshubhattacharya@Sitangshus-iMac databases_yambopy % python elph_plot.py
37 kpoints expanded to 324
Traceback (most recent call last):
File "/Users/sitangshubhattacharya/yambopy/tutorial/databases_yambopy/elph_plot.py", line 34, in <module>
yelph = YamboElectronPhononDB(ylat,folder_gkkp=save_path+'/SAVE',save=save_path+'/SAVE')
File "/opt/anaconda3/envs/yambopy/lib/python3.10/site-packages/yambopy/dbs/elphondb.py", line 97, in __init__
self.ibz_kpoints_elph = database.variables['HEAD_KPT'][:].T
KeyError: 'HEAD_KPT'
I have tested that the gkkp* files are not bad. I can use them (unexpanded) to obtain all QP energies at variety of temperatures.
I used these parameters in the elph_plot.py script:
i_n, i_m = [25,26] #i_n =25 -> valence band, i_n = 26 -> conduction band
i_nu = 3 # LA phonon mode at K (ZO mode at Gamma); LO, TO modes are i_nu=4,5
i_q = 323 # This is the K-point in the hexagonal BZ
i_k = 323
I tried with the hBN database, but it did not give me this error. Is it related to yambo version? I realized that the hBN database was done on a different version. It does not have ns.nlcc_pp_pwscf file.
A little advise will be very much appreciated.
Regards,
Sitangshu