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

Re: Issue #94 #95

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Re: Issue #94 #95

wants to merge 1 commit into from

Conversation

wladerer
Copy link

@wladerer wladerer commented Mar 6, 2023

Updated np.float to np.float64 and np.int_

Updated np.float to np.float64 and np.int_
@jochym
Copy link

jochym commented Mar 15, 2023

I have fixed this issue in my install by going: np.float -> float ; np.int -> int. I am not sure use of numpy-specific types is the best way to go. Maybe the authors should consider which one is the proper one. Your fix is valid IMHO.
This fix is quite urgent. The library is unusable in current conda install...

@wladerer
Copy link
Author

wladerer commented Mar 15, 2023

It seems that they have another repository titled pyprocar2 with the built in datatypes that you used. It resolved the conversion issue, but not the indexing issue when parsing the POSCAR for coordinates.

For anyone reading this without context, a quick fix for the current version of pyprocar is to uninstall the package using pip / conda and then cloning my fork of git repository. Then run pip install -e <path_to_cloned_dir>

You can also edit the file yourself using the process outlined in the issue description . I hope this helps.

It's a wonderful package and incredibly useful, so thank you to the Romero group for putting this all together

@ahromero
Copy link
Collaborator

ahromero commented Mar 15, 2023 via email

@lllangWV
Copy link
Member

Hey I just wanted to add,

you can find the changes in Pyprocar2. It is also found in the dev branch of the pyprocar repo.

Pyprocar2 was a directory I made to keep changes from the original pyprocar separate, but later I decided to keep these changes in the dev branch rather than switch repositories entirely.

As for the indexing issue, we created an object similar to what you are describing in the dev branch pyprocar.io.vasp.Poscar. I can update the script to use this object to handle the parsing of the POSCAR.

Logan Lang

@wladerer
Copy link
Author

wladerer commented Mar 15, 2023 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

Successfully merging this pull request may close these issues.

4 participants