Commit 2c94e27e15f1d59dd9b8ef3e84e51e48920a6297
Committed by
mykhaly
1 parent
c81d7647
Fix compare_coordinates docs
Showing
1 changed file
with
1 additions
and
5 deletions
| ... | ... | @@ -116,10 +116,7 @@ def compare_date(left, right, accuracy="minute", absolute_delta=True): |
| 116 | 116 | |
| 117 | 117 | |
| 118 | 118 | def compare_coordinates(left_lat, left_lon, right_lat, right_lon, accuracy=0.1): |
| 119 | - '''Compares dates with specified accuracy | |
| 120 | - | |
| 121 | - Before comparison dates are parsed into datetime.datetime format | |
| 122 | - and localized. | |
| 119 | + '''Compares coordinates with specified accuracy | |
| 123 | 120 | |
| 124 | 121 | :param left_lat: First coordinate latitude |
| 125 | 122 | :param left_lon: First coordinate longitude |
| ... | ... | @@ -134,7 +131,6 @@ def compare_coordinates(left_lat, left_lon, right_lat, right_lon, accuracy=0.1): |
| 134 | 131 | :error: ValueError when there is problem with converting accuracy |
| 135 | 132 | into float value. When it will be catched warning will be |
| 136 | 133 | given and accuracy will be set to 0.1. |
| 137 | - | |
| 138 | 134 | ''' |
| 139 | 135 | for key, value in {'left_lat': left_lat, 'left_lon': left_lon, 'right_lat': right_lat, 'right_lon': right_lon}.iteritems(): |
| 140 | 136 | if not isinstance(value, NUM_TYPES): | ... | ... |
Please
register
or
login
to post a comment