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

implemented fix atom constraint and constraint API #352

Merged
merged 16 commits into from
Oct 17, 2024
Merged

Conversation

M-R-Schaefer
Copy link
Contributor

No description provided.

@M-R-Schaefer
Copy link
Contributor Author

closes #335

Copy link
Contributor

@PythonFZ PythonFZ left a 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.

Comment on lines 8 to 9
def create(self, state):
pass
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point

@M-R-Schaefer M-R-Schaefer merged commit 7be7a41 into main Oct 17, 2024
2 checks passed
@M-R-Schaefer M-R-Schaefer deleted the constraints branch October 17, 2024 12:45
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