Skip to content

Commit

Permalink
MNT: Remove unused argument (Fixes #207)
Browse files Browse the repository at this point in the history
  • Loading branch information
dopplershift committed Oct 11, 2016
1 parent d758ffb commit 81c28f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion metpy/calc/tests/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_nearest_intersection_idx():
y2 = 100 * x - 650
truth = np.array([2, 12])

assert_array_equal(truth, nearest_intersection_idx(x, y1, y2))
assert_array_equal(truth, nearest_intersection_idx(y1, y2))


def test_find_intersections():
Expand Down
6 changes: 2 additions & 4 deletions metpy/calc/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,13 @@ def resample_nn_1d(a, centers):


@exporter.export
def nearest_intersection_idx(x, a, b):
def nearest_intersection_idx(a, b):
"""
Determines the index of the point just before two lines with
common x values.
Parameters
----------
x : array-like
1-dimensional array of numeric x-values
a : array-like
1-dimensional array of y-values for line 1
b : array-like
Expand Down Expand Up @@ -87,7 +85,7 @@ def find_intersections(x, a, b):
"""

# Find the index of the points just before the intersection(s)
nearest_idx = nearest_intersection_idx(x, a, b)
nearest_idx = nearest_intersection_idx(a, b)

# Make an empty array to hold what we'll need for calculating
# approximate intersections. Each row is an intersection
Expand Down

0 comments on commit 81c28f9

Please sign in to comment.