-
Notifications
You must be signed in to change notification settings - Fork 1
Complex docs #268
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
Complex docs #268
Conversation
Great job, no security vulnerabilities found in this Pull Request |
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.
Pull Request Overview
This PR refactors the Complex class to improve its API design and adds support for combining LigandSet objects using arithmetic operators. The changes include transitioning from a dataclass-based initialization to a custom constructor, implementing property-based ligand management, and adding arithmetic operations for LigandSet.
- Replaces dataclass initialization with custom constructor for more flexible ligand type handling
- Adds arithmetic operators (
__add__
and__radd__
) to LigandSet for combining ligands - Updates documentation with examples of new usage patterns and removes unused imports
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
src/drug_discovery/complex.py | Replaces dataclass init with custom constructor and adds ligands property with flexible type handling |
src/drug_discovery/structures/ligand.py | Adds arithmetic operators to LigandSet for combining with other LigandSet, Ligand, or list objects |
docs/dd/how-to/complex.md | Updates documentation with new constructor patterns and arithmetic operation examples |
src/files/file_service/generated_api.py | Removes unused httpx import from generated API file |
src/files/file_service/init.py | Reorders imports and removes unused "genapi" from all |
pyproject.toml | Updates rcsb-api dependency to require minimum version 1.1.4 |
No description provided.