Skip to content

Commit

Permalink
Fixed PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
ojeda-e committed Jul 22, 2021
1 parent 8206fda commit b63bd5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions membrane_curvature/surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def interpolation_by_array(array_surface):

def surface_interpolation(array_surface):
"""
Calculates interpolation
Calculates interpolation
Parameters
----------
Expand All @@ -153,7 +153,7 @@ def surface_interpolation(array_surface):
-------
Returns interpolated surface
Interpolated surface derived from set of coordinates
Interpolated surface derived from set of coordinates
in grid of `x_range, y_range` dimensions.
Numpy array of floats of shape (`n_x_bins`, `n_y_bins`)
Expand Down
7 changes: 4 additions & 3 deletions membrane_curvature/tests/test_membrane_curvature.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"""

import pytest
from membrane_curvature.surface import interpolation_by_array, normalized_grid, derive_surface, get_z_surface, surface_interpolation
from membrane_curvature.surface import (interpolation_by_array, normalized_grid,
derive_surface, get_z_surface, surface_interpolation)
from membrane_curvature.curvature import mean_curvature, gaussian_curvature
import numpy as np
from numpy.testing import assert_almost_equal
Expand Down Expand Up @@ -221,7 +222,7 @@ def test_get_z_surface(x_bin, y_bin, x_range, y_range, expected_surface):
np.array([[150., 150, 150., 150.],
[150., 150., 150., 150.],
[150., 150., 150., 150.]])),
# array 4x4 ith all 150 and two nans
# array 4x4 with all 150 and two nans
(np.array([[150., 150, 150., 150.],
[150., np.nan, np.nan, 150.],
[150., 130., 140., 150.],
Expand All @@ -230,7 +231,7 @@ def test_get_z_surface(x_bin, y_bin, x_range, y_range, expected_surface):
[150., 140., 145., 150.],
[150., 130., 140., 150.],
[150., 150., 150., 150.]])),
# array 3x3 with lots of nans)
# array 3x3 with lots of nans
(np.array([[np.nan, np.nan, 150.],
[150, np.nan, 150.],
[np.nan, 150., np.nan]]),
Expand Down

0 comments on commit b63bd5f

Please sign in to comment.