Skip to content

Fix ValueError: Unexpected atomic number Z=0 #3066

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

Merged
merged 1 commit into from
Jun 14, 2023
Merged

Fix ValueError: Unexpected atomic number Z=0 #3066

merged 1 commit into from
Jun 14, 2023

Conversation

janosh
Copy link
Member

@janosh janosh commented Jun 14, 2023

Caused by

        for idx, specie in enumerate(species):
            sites.append(Site(specie, coords[idx], properties=prop))

where species is dict, not list so to get value, must be species[idx], not specie.

        for idx, specie in enumerate(species):
            sites.append(Site(specie, coords[idx], properties=prop))

where species is dict, not list so to get value, must be species[idx], not specie
@janosh janosh added the fix Bug fix PRs label Jun 14, 2023
@janosh janosh enabled auto-merge (squash) June 14, 2023 05:26
@janosh janosh merged commit 7a54a3e into master Jun 14, 2023
@janosh janosh deleted the fix-ci branch June 14, 2023 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant