Skip to content

Feat/pydantic#6

Draft
romaingrx wants to merge 298 commits intov2from
feat/pydantic
Draft

Feat/pydantic#6
romaingrx wants to merge 298 commits intov2from
feat/pydantic

Conversation

@romaingrx
Copy link

No description provided.

romaingrx and others added 30 commits October 16, 2025 14:57
…ssignment and connectivity modules, updating 'protonation' to 'Protonation', 'charge_state' to 'ChargeState', and 'molecule' to 'Molecule'. This improves code readability and maintains uniformity in naming conventions.
- Add type annotations and Pydantic BaseModel inheritance to all classes
- Implement computed fields for dynamic properties like atnum, block, formula
- Add serialization support for circular references
- Include version, type, and subtype fields for consistency
- Update my_types.py with proper type definitions
adding initial CITATION document
This commit enhances the handling of circular references in Pydantic
models by introducing a registry system for object resolution during
deserialization. UUID strings are now used as placeholders and resolved
to actual objects post-deserialization. It also updates type annotations
to support both object references and UUID strings, adds deserialization
logic for RDKit Mol objects, and fixes serialization issues in the
Protonation class.
Implement support for saving and loading `Cells` objects in both JSON
and pickle formats, with a preference for JSON as the default format.
Deprecate pickle usage with appropriate warnings.
refactor: update logging filename from cell2mol.out to cell2mol.log
fix: change empty coordinates check from size to length in normalize_structure
feat(cell): rename error map key for clarity and remove commented code
feat(write_results): enhance Metal info output with group details
…tion state enumeration.

- introduce new haptic types
- use missing hydrogen detection for non-local protonation sites
…for merged groups

feat(coordination): replace print statements with logger warnings for better error tracking
… handle non-carbon atoms in _handle_haptic_group
…l_coordination function

- get_denticity function should be changed later
…ed_atoms

- Primary: hydrogens, Secondary: Furthest distance first
… attributes and improve charge correction logic
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.

3 participants