Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue running with the latest version of phonopy #8

Open
siavash34 opened this issue Jun 11, 2024 · 3 comments
Open

Issue running with the latest version of phonopy #8

siavash34 opened this issue Jun 11, 2024 · 3 comments

Comments

@siavash34
Copy link

siavash34 commented Jun 11, 2024

Dear Yuji

I installed the latest version and try to run the following command for the example on file and an example of my own:
upho_weights band.conf

I then proceed to get the following (I have copied all for completeness):

/home/sam/.local/bin/upho_weights band.conf
UPHO version. 0.6.6

dict_input:
{'force_constants': 'FORCE_CONSTANTS',
'projection': 'eigenvectors',
'run_mode': 'band',
'star': 'sym',
'structure': 'POSCAR',
'structure_ideal': 'POSCAR_ideal'}

run_mode: band
star: sym
projection: eigenvectors
fc_filename: FORCE_CONSTANTS
supercell_matrix:
[[2 0 0]
[0 2 0]
[0 0 2]]
primitive_matrix:
[[0. 0.5 0.5]
[0.5 0. 0.5]
[0.5 0.5 0. ]]
Traceback (most recent call last):
File "/home/sam/.local/bin/upho_weights", line 252, in
main()
File "/home/sam/.local/bin/upho_weights", line 152, in main
phonon = PhonopyUnfolding(unitcell,
File "/home/sam/.local/lib/python3.10/site-packages/upho/api_unfolding.py", line 60, in init
self._build_supercell()
File "/home/sam/Downloads/Codes/phonopy/phonopy/api_phonopy.py", line 3809, in _build_supercell
is_old_style=(not self._use_SNF_supercell),
AttributeError: 'PhonopyUnfolding' object has no attribute '_use_SNF_supercell'

I do not know what the issue is but I assume it has something to do with the newer version of phonopy. I was wondering if you could guide me as to what I am able to do to resolve this.

Best
Siavash Karbasizadeh

@JTaozhang
Copy link

Hi Siavash,

I meet the same issue. did you find solution to it?

Best,
Tao

@siavash34
Copy link
Author

Hi Siavash,

I meet the same issue. did you find solution to it?

Best, Tao

Hi Tao

I did resolve this by hashtaging out line 60 of the script api_unfolding.py "self._build_supercell()". I ran tests after and everything seems to work perfectly without the previous error.

Best
Siavash

@JTaozhang
Copy link

JTaozhang commented Jul 14, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants