Skip to content

Commit

Permalink
Change position of argument selection in and test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ojeda-e committed Jul 7, 2021
1 parent 6546d1b commit 6580a78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions membrane_curvature/surface.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np


def derive_surface(n_cells_x, n_cells_y, selection, max_width_x, max_width_y):
def derive_surface(selection, n_cells_x, n_cells_y, max_width_x, max_width_y):
"""
Derive surface from AtomGroup positions.
Expand Down Expand Up @@ -105,6 +105,3 @@ def normalized_grid(grid_z_coordinates, grid_norm_unit):
z_normalized = grid_z_coordinates / grid_norm_unit

return z_normalized



2 changes: 1 addition & 1 deletion membrane_curvature/tests/test_membrane_curvature.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def test_derive_surface(small_grofile):
n_cells, max_width = 3, 30
expected_surface = np.array(([150., 150., 120.], [150., 120., 120.], [150., 120., 120.]))
max_width_x = max_width_y = max_width
surface = derive_surface(n_cells, n_cells, small_grofile, max_width_x, max_width_y)
surface = derive_surface(small_grofile, n_cells, n_cells, max_width_x, max_width_y)
assert_almost_equal(surface, expected_surface)


Expand Down

0 comments on commit 6580a78

Please sign in to comment.