Skip to content

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

Merged
merged 8 commits into from
Jul 10, 2025
Merged

Complex docs #268

merged 8 commits into from
Jul 10, 2025

Conversation

sg-s
Copy link
Collaborator

@sg-s sg-s commented Jul 10, 2025

No description provided.

@sg-s sg-s self-assigned this Jul 10, 2025
@sg-s sg-s marked this pull request as ready for review July 10, 2025 13:55
@sg-s sg-s requested a review from a team as a code owner July 10, 2025 13:55
@sg-s sg-s requested a review from Copilot July 10, 2025 13:55
Copilot

This comment was marked as outdated.

@checkmarx-do
Copy link

checkmarx-do commented Jul 10, 2025

Logo
Checkmarx One – Scan Summary & Detailsfb19591c-426a-4953-b9c2-8849dfab7acd

Great job, no security vulnerabilities found in this Pull Request

@sg-s sg-s requested a review from Copilot July 10, 2025 14:00
Copy link
Contributor

@Copilot Copilot AI left a 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

@sg-s sg-s merged commit 0324b8d into main Jul 10, 2025
12 of 13 checks passed
@sg-s sg-s deleted the complex-docs branch July 10, 2025 14:06
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