-
Notifications
You must be signed in to change notification settings - Fork 874
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
Cannot init Cohpcar
in matgenb
example notebook: ValueError: setting an array element with a sequence.
#4215
Comments
There is a second notebook. This one is not needed and outdated |
Thanks for the quick response! This one |
@naik-aakash could you take a look? |
In general, it would be great if the tutorials would be directly tested on a new pymatgen version. In the current way, we have a very hard time to update them. |
I'm btw not very actively working on the LOBSTER stuff. |
Hi @JaGeo , @DanielYang59 , I can look into it 😄 |
@naik-aakash Thanks a lot :)
Sorry I didn't know that, but I would keep that in mind
I believe everything would suffer if not checked/maintained regularly. I guess it's good to trigger the test workflow of Or perhaps just make our life easier and trigger that every few months. I have collected this into my TODO list :) |
Hi @DanielYang59 , I had a chance to quickly look into this issue. Seems it not any bug in parser but the example file on the repository has for some reason got added an new line at last line causing this error. Simply removing this trailing line seemed to fix the issue. For both the example it is same problem. Here is an updated file that can be used instead (the only change is for the last line unexpected "\n" is removed, this is usually not the case of files generated by LOBSTER) |
Hi @naik-aakash wish everything is doing well. That is hugely appreciated. If that's really the case, then LOBSTER might be violating the POSIX standard definition of "line" IMO:
As per the above definition, every line (including the last) should end with a terminating "newline" char (which might look like an "empty line at the end" in a text editor but it's not). In other words, a text file should always end as Perhaps it's good to reach out to LOBSTER team about this? Or at least we could enhance related parsers from our side to be insensitive of such terminating chars :) |
@naik-aakash maybe (after the Christmas break 👀), you can regenerate a cohpcar with the latest Lobster version. Then, we can check this in detail |
Two LOBSTER examples in
matgenb
seems to be failing:Gives:
COHPCAR.lobster.txt
cc @JaGeo @QuantumChemist @naik-aakash
The text was updated successfully, but these errors were encountered: