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

Charge annotation's data type incorporated in 'structure.info.residue' is a tuple with the elements as string #254

Closed
JacobAnter opened this issue Nov 14, 2020 · 1 comment · Fixed by #255

Comments

@JacobAnter
Copy link
Contributor

JacobAnter commented Nov 14, 2020

Peculiarly, the data type of the charge annotation delivered by the function 'structure.info.residue' is a tupel instead of a NumPy array, and the individual elements are strings. One would expect the charge annotation to be a NumPy array and the individual elements to be integers.

fluoromethane = info.residue("CF0")
fluoro_charges = fluoromethane.charge
print(fluoro_charges)

The result is a tuple with strings as elements.

@padix-key padix-key changed the title Charge annotation's data type incorporated in 'structure.info.residue' is a tupel with the elements as string Charge annotation's data type incorporated in 'structure.info.residue' is a tuple with the elements as string Nov 16, 2020
@padix-key
Copy link
Member

Thank you for the report. The output is indeed not intended.

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 a pull request may close this issue.

2 participants