We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
AttributeDict does not support hasattr() but it should:
import gromacs ad = gromacs.utilities.AttributeDict(a=1, b=2) assert hasattr(ad, "a") assert not hasattr(ad, "x") # raises AttributeError from KeyError
Using in is a workaround:
in
assert "a" in ad assert "x" not in ad
The text was updated successfully, but these errors were encountered:
Here is my little proposal of a fix #269
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
AttributeDict does not support hasattr() but it should:
Using
in
is a workaround:The text was updated successfully, but these errors were encountered: