Skip to content

Switch from deprecated phonopy dictionaries to attributes - #233

Merged
rul048 merged 13 commits into
materialyzeai:mainfrom
Andrew-S-Rosen:patch-15
Jun 22, 2026
Merged

Switch from deprecated phonopy dictionaries to attributes#233
rul048 merged 13 commits into
materialyzeai:mainfrom
Andrew-S-Rosen:patch-15

Conversation

@Andrew-S-Rosen

@Andrew-S-Rosen Andrew-S-Rosen commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

As of phonopy 4.2.0 (38 minutes ago), several dictionary methods were deprecated in favor of attributes. I have switched over to prevent warnings and future issues.

Edit: Not sure why tests are failing yet...

Andrew-S-Rosen and others added 3 commits June 8, 2026 22:19
Added extraction of thermal properties into a dictionary format for easier access.

Signed-off-by: Andrew S. Rosen <asrosen93@gmail.com>
Signed-off-by: Andrew S. Rosen <asrosen93@gmail.com>
@Andrew-S-Rosen Andrew-S-Rosen changed the title Switch from deprecated phonopy dictionaries to attributes [WIP] Switch from deprecated phonopy dictionaries to attributes Jun 9, 2026
Signed-off-by: Andrew S. Rosen <asrosen93@gmail.com>
Signed-off-by: Andrew S. Rosen <asrosen93@gmail.com>
@Andrew-S-Rosen

Copy link
Copy Markdown
Contributor Author

Looks like this causes a conflict with phono3py, which should probably be moved to an optional dependency anyway. This is all I have time for at the moment so will need to put this on pause. If others want to pick up on this, by all means go ahead.

@rul048

rul048 commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Thanks, I can take over this.

@rul048

rul048 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Hi Prof. @Andrew-S-Rosen, the CI failure was because phono3py hasn't released a version supporting phonopy 4.2.x yet (the fix is in their main branch but not yet on PyPI). To get things working, I moved phono3py to an optional phonon3 extra and temporarily pinned the dev build from GitHub in the ci extra. I also fixed a couple of mypy errors in _phonon.py. I'll update the pin once phono3py cuts a proper release.

@rul048 rul048 changed the title [WIP] Switch from deprecated phonopy dictionaries to attributes Switch from deprecated phonopy dictionaries to attributes Jun 16, 2026
@Andrew-S-Rosen

Copy link
Copy Markdown
Contributor Author

Thanks, @rul048! That makes a lot of sense. Looks like the dev phono3py will fix things once it gets on PyPI.

rul048 added 2 commits June 21, 2026 23:46
Signed-off-by: Runze Liu <146490083+rul048@users.noreply.github.com>
@rul048

rul048 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

phono3py has now been released on PyPI with support for phonopy 4.2.x. All CI checks are passing. Merged.

@rul048
rul048 merged commit 5bd0ce7 into materialyzeai:main Jun 22, 2026
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants