-
Notifications
You must be signed in to change notification settings - Fork 176
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
Phonopy QHA fixed missing att #751
Conversation
bump maggma
0e33617
to
91a9145
Compare
Should be fixed after materialsproject/maggma#595 is merged. |
@itsshawnzhang is it OK to add an extra |
Yes of course. You can modify the requirements-optional and we then ca run through the tests. If everything works well, we can then move on to merge the modification to main branch. |
I think a bunch changed in phonopy 2? There's an old issue here discussing some API changes: #271 maybe? |
@itsshawnzhang so I have an colleague that is going to test this. Can we get this small change merged then I promise to add the tests and additional docs once I have the actual test file? @mkhorton this PR is specifically addressing that issue, I looked at the new phonopy API a bit and I think the change gets the atomate code to do what it was originally designed to. |
Ah, gotcha. Thanks @jmmshn. I think I ended up concluding it would be easier to write new workflows in atomate2, but I'm glad you've fixed this (I've been running phonon calculations manually) |
Okay. I can help you with it. So just to make sure that the phonopy version requirement is in the optional requirements file. If it's not going to work comparably with new version of phonopy, we just need to open a new PR to change it back then. Thanks for your contribution. Please let me know if there is any other problems or concerns. Cheers:) |
Fixed attribute change related to Phonopy QHA change #271
I don't know the original version of
phonopy
that references the_max_t_index
attribute but it appears they now useself._len
in the same way:Examples:
https://github.com/phonopy/phonopy/blob/ac7abb7e4bbbd3e45d76d21cf3e722176830a9e1/phonopy/qha/core.py#L258
https://github.com/phonopy/phonopy/blob/ac7abb7e4bbbd3e45d76d21cf3e722176830a9e1/phonopy/qha/core.py#L263
The source of the
self._len
is listed below and should be the same as the_max_t_index
.https://github.com/phonopy/phonopy/blob/ac7abb7e4bbbd3e45d76d21cf3e722176830a9e1/phonopy/qha/core.py#L364
https://github.com/phonopy/phonopy/blob/ac7abb7e4bbbd3e45d76d21cf3e722176830a9e1/phonopy/qha/core.py#L1040
https://github.com/phonopy/phonopy/blob/ac7abb7e4bbbd3e45d76d21cf3e722176830a9e1/phonopy/qha/core.py#L375