-
Notifications
You must be signed in to change notification settings - Fork 871
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
FEFFDictSet write_input appears to be bugged in some cases #3187
Comments
@stefsmeets Could this be caused by the recent changes to |
@matthewcarbone what is the last known version that this is working? I did a git bisect to way before we added labels, and it seems to be broken since a couple of months from what I can tell.
This commit introduces the bug: c62f8a0 |
@stefsmeets I don't quite recall, no (though looks like you did find it). I do know that the old version of |
@stefsmeets thanks a lot for digging into this! @rkingsbury looks like the commit fixed one case, but broke another. I'm not very familiar with this part of pymatgen. Do you see an easy way to fix both? |
I just pushed a fix. Pls check. |
Thanks for reporting @matthewcarbone and bisecting @stefsmeets and suggesting a fix @shyuep . Apologies @janosh I didn't see your ping last week. As part of the PR that introduced the regression, I added a test for the case in which there is only a single absorbing atom in the structure (which is what motivated the change in the first place). The basic issue was that that single atom needs to be excluded from the pot_dict section. If the test still passes with @shyuep fix and if it works for you @matthewcarbone then I think we're good. |
@shyuep @rkingsbury sorry for the late reply but this appears to work now. v2 API ( |
Description
I've found what appears to be a strange edge case when using the
FEFFDictSet
, which does not appear in older versions of Pymatgen.Note: there are clearly Ti and O atoms in this structure. Here's a boilerplate FEFF input config.
But when trying to write the input file, I get this error.
It appears that somehow Ti is not found in this
self.pot_dict
object buried inpymatgen.io.feff.inputs.Atoms.get_lines
. I have no idea why and have not run into this before (this has worked in previous versions of Pymatgen). Any idea what's going on?Repro
See above. I'm using Pymatgen version
2023.7.20
.Expected behavior
I don't think this should error... Clearly Ti is in this structure!
Environment
MacOS M1 Ventura 13.4.1
The text was updated successfully, but these errors were encountered: