Skip to content

Feat/pydantic#6

Draft
romaingrx wants to merge 334 commits into
v2from
feat/pydantic
Draft

Feat/pydantic#6
romaingrx wants to merge 334 commits into
v2from
feat/pydantic

Conversation

@romaingrx

Copy link
Copy Markdown

No description provided.

romaingrx and others added 30 commits December 23, 2025 16:38
- Create _NDArrayType and _RDKitMolType with __get_pydantic_core_schema__
- Simplify _serialize_value to be the single recursive serializer
- Remove manual type detection functions (_is_ndarray_annotation, etc.)
- Use field metadata for type conversion during deserialization
- Remove unused RefMarker import and _is_ref_field/_has_ref_fields

This centralizes type handling: each custom type provides its own
validator and serializer via Pydantic's schema system.
- Remove RefMarker, WrapSerializer and _serialize_ref
- Ref/RefList/OptionalRef/OptionalRefList are now simple type aliases
- Serialization is already handled by _serialize_value in pydantic.py
- Remove unused imports (dataclass, SerializationInfo)
- Remove Ref[T] wrapper class (utils/ref.py)
- Simplify Bond to use plain atom1/atom2 fields
- Remove Ref handling from pydantic.py serialization
- Update tests to reflect simpler Bond structure
- Delete test_ref.py (no longer needed)

Bond now uses direct Atom references like all other classes.
- Add GitHub Actions workflow for linting and testing
- Configure uv with caching via reusable setup action
- Add concurrency control to cancel redundant CI runs
- Organize dependency groups (test, dev) in pyproject.toml
- Add pre-commit to dev dependencies
- Store test fixtures in Git LFS to avoid repo bloat
- Update test fixture path to tests/fixtures/
- Removed redundant code and comments to improve readability
-Commented out unnecessary file saving operations in `process_refcell` and `process_unitcell` functions
- add read_cif.py for handling cif file and export reported information
- add write_results.py for handling cell2mol output and error logging
choglass added 30 commits May 27, 2026 18:48
… cif bond info

When config.USE_BOND_INFO is True, coordination groups are derived from
reported bond information, so validate_coordinated_atoms is no longer called.
…or priority atoms and add haptic type reporting
update has_different_metal_coordination to record missing atoms (found in other ref molecule)
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