-
Notifications
You must be signed in to change notification settings - Fork 250
Added a species constraint for the max number of rings fused together (revived) #2868
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
base: main
Are you sure you want to change the base?
Changes from all commits
bd50ec0
da2921f
17fc2a2
732a01e
b0b49ff
8aabf21
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -3002,6 +3002,35 @@ def get_desorbed_molecules(self): | |||||||
|
|
||||||||
| return desorbed_molecules | ||||||||
|
|
||||||||
| def get_ring_count_in_largest_fused_ring_system(self) -> int: | ||||||||
| """ | ||||||||
| Get the number of rings in the largest fused ring system in the molecule. | ||||||||
|
||||||||
| Get the number of rings in the largest fused ring system in the molecule. | |
| Get the number of rings in the largest fused ring system in the molecule. | |
| Returns 0 if the molecule has no fused rings (only monocycles or no rings). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The constraint name 'maximumFusedRings' suggests it counts fused rings (rings sharing edges), but the implementation also counts spirocyclic rings (rings sharing a single atom) since get_polycycles() returns both types. Consider clarifying in the documentation whether spirocyclic rings are intentionally included in this constraint, or if the behavior should be restricted to only fused rings.