Skip to content
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

Validation for dataclasses #240

Open
1 of 2 tasks
kevinsung opened this issue Jun 8, 2024 · 0 comments
Open
1 of 2 tasks

Validation for dataclasses #240

kevinsung opened this issue Jun 8, 2024 · 0 comments

Comments

@kevinsung
Copy link
Collaborator

kevinsung commented Jun 8, 2024

The task is to implement input validation for some of the dataclasses in ffsim. This can be made optional using an init-only field called validate: bool and a __post_init__ method. Examples:

  • UCJOpSpinBalanced, UCJOpSpinUnbalanced, UCJOpSpinless. Check that the orbital rotations are unitary and that the appropriate diagonal Coulomb matrices are symmetric.
  • Classes in hamiltonians/
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

No branches or pull requests

1 participant