Skip to content

Commit

Permalink
Fixed PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
ojeda-e committed Aug 2, 2021
1 parent 13ea4a9 commit 36bd38e
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 @@ -167,7 +167,7 @@ def interpolation_by_array(array_surface):

def surface_interpolation(array_surface):
"""
Calculates interpolation
Calculates interpolation
Parameters
----------
Expand All @@ -179,7 +179,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 @@ -4,7 +4,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 @@ -222,7 +223,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 @@ -231,7 +232,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 36bd38e

Please sign in to comment.