-
Notifications
You must be signed in to change notification settings - Fork 865
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
Add LobsterMatrices
parser to lobster.io.outputs
#3361
Add LobsterMatrices
parser to lobster.io.outputs
#3361
Conversation
…/pymatgen into hamilton_matrices_lobster_io sync remote
Hi @janosh, this PR is ready to be merged. I would be happy to address if any specific changes are desired before merging. |
tests/io/lobster/test_inputs.py
Outdated
assert self.hamilton_matrices.average_onsite_energies == { | ||
"Na1_3s": 0.5885535399999997, | ||
"Na1_2p_y": -25.727196460000002, | ||
"Na1_2p_z": -25.727196460000002, | ||
"Na1_2p_x": -25.727196460000002, |
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.
Use pytest.approx
when testing dicts containing floats. Otherwise the tests can be brittle and fail unexpectedly on different OS/Python versions.
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.
Thanks will keep this in mind 😃
LobsterMatrices
parser to lobster.io.outputs
New
Todo