-
Notifications
You must be signed in to change notification settings - Fork 3
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
implemented fix atom constraint and constraint API #352
Conversation
for more information, see https://pre-commit.ci
closes #335 |
for more information, see https://pre-commit.ci
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.
Looks good to me. I'd prefer type hints for abstract function return values, which should return a callable or maybe as short docstring as well to make it easier to understand how to expand, although it is very clear how to do that.
apax/md/constraints.py
Outdated
def create(self, state): | ||
pass |
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.
here you use state, in FixAtoms you use ref_state
.
Maybe use abc
?
As this is a function factory, maybe add -> Callable
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.
Good point
for more information, see https://pre-commit.ci
No description provided.