Skip to content

Adjust element indexing in molecular_graph.py#37

Merged
akalikadien merged 1 commit intomainfrom
aakolganov-patch-1
Nov 12, 2025
Merged

Adjust element indexing in molecular_graph.py#37
akalikadien merged 1 commit intomainfrom
aakolganov-patch-1

Conversation

@aakolganov
Copy link
Contributor

Fixed a bug which adds 1 to the atomic numbers of the extracted complex structure

@akalikadien akalikadien self-requested a review November 12, 2025 11:58
Copy link
Member

@akalikadien akalikadien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, this piece of code gets triggered if Morfeus objects have atomic elements as digits instead of strings. The conversion of integers to strings would indeed go wrong because of this indexing error.

@akalikadien akalikadien merged commit 63c884b into main Nov 12, 2025
2 of 5 checks passed
@akalikadien akalikadien deleted the aakolganov-patch-1 branch November 12, 2025 12:00
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.

2 participants