-
Notifications
You must be signed in to change notification settings - Fork 736
[WIP]Pytest Style analysis/test_density.py #1543
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
Conversation
|
build fails |
|
build still fails |
|
@kain88-de Can't figure what I broke in def test_grid(self, D):
dV = D.delta.prod() # orthorhombic grids only!
# counts = (rho[0] * dV[0] + rho[1] * dV[1] ...) = sum_i rho[i] * dV
assert_almost_equal(D.grid.sum() * dV, self.counts) |
|
@kain88-de Need help here. |
|
On line 45, as you declare class attributes, you use the class attribute I think you need to create a fixture for |
|
Yes python doesn't allow using the attributes you declare in a list comprehension |
|
|
||
| from MDAnalysisTests.datafiles import TPR, XTC, GRO | ||
| from MDAnalysisTests import module_not_found, tempdir | ||
| from MDAnalysisTests import tempdir |
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.
please also remove the tempdir usage if you haven't done so already.
a137d8f to
2394f1d
Compare
Fixes #
Changes made in this Pull Request:
PR Checklist