Skip to content

Commit

Permalink
docs: Correct typo in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
rouille committed Nov 6, 2019
1 parent b939d9b commit 783d27e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions postreise/analyze/distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
def great_circle_distance(x):
"""Calculates distance between two sites.
:param pandas.dataFrame x: start and end point corrdinates of branches.
:return: (*float*) -- length of line (in km.).
:param pandas.dataFrame x: start and end point coordinates of branches.
:return: (*float*) -- length of branch (in km.).
"""
site_coords = (x.from_lat, x.from_lon)
place2_coords = (x.to_lat, x.to_lon)
return geopy.distance.vincenty(site_coords, place2_coords ).km

return geopy.distance.vincenty(site_coords, place2_coords).km

0 comments on commit 783d27e

Please sign in to comment.