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

bug fix for combined haptic and dentate ligands #310

Merged
merged 1 commit into from
Jan 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions molSimplify/Classes/mol2D.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,9 @@
# remove all paths which are subsets of other paths
coordination_paths = [path for path in coordination_paths if not any(
set(path).issubset(set(other_path)) and path != other_path for other_path in coordination_paths)]
# add back in isolated atoms which are not in any paths
coordination_paths.extend(

Check warning on line 333 in molSimplify/Classes/mol2D.py

View check run for this annotation

Codecov / codecov/patch

molSimplify/Classes/mol2D.py#L333

Added line #L333 was not covered by tests
[[atom] for atom in set(catoms) - set(atom for path in coordination_paths for atom in path)])

denticity = len(coordination_paths)
hapticity = [len(path) for path in coordination_paths]
Expand Down
Loading