Skip to content

fix index for shell points extraction in Structure.py#31

Open
p4trykk wants to merge 1 commit into
i2bc:masterfrom
p4trykk:fix_shell_point_parsing
Open

fix index for shell points extraction in Structure.py#31
p4trykk wants to merge 1 commit into
i2bc:masterfrom
p4trykk:fix_shell_point_parsing

Conversation

@p4trykk

@p4trykk p4trykk commented Jul 8, 2026

Copy link
Copy Markdown

During maps generating I noticed incorrect closest atom assignments for some shell points. After checking the issue I found that problem is not related to distance calculation itself, but with parsing shell point identifiers. The issue is located in parsePDBParticule() in Structure.py. Parser reads the shell point identifier using: line[7:11] In results, parser for values > 9999 reads only last 4 digits so different shell points may end up with the same index causing their coordinates to overwrite each other. This later leads to incorrect closest-atom calculations.

Proposed fix: change ranges of parsing from line[7:11] to line[4:11].

I tested this changes locally and it resolves problem.

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.

1 participant