Skip to content

Commit

Permalink
Merge pull request #86 from fbonzon/typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
tkrajina committed Mar 12, 2017
2 parents 2d965f3 + b13e936 commit b2185ae
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion NOTICE.txt
Expand Up @@ -2,7 +2,7 @@ GPX.py
Copyright 2010-2012 Tomo Krajina

This product includes software developed by
Tomo Krajina (http://www.puzz.info).
Tomo Krajina (https://tkrajina.blogspot.com/).

===============================================================================

Expand Down
2 changes: 1 addition & 1 deletion gpxpy/geo.py
Expand Up @@ -379,4 +379,4 @@ def move_by_angle_and_distance(self, location):
return location.latitude + lat_diff, location.longitude + lon_diff

def move_by_lat_lon_diff(self, location):
return location.latitude + self.latitude_diff, location.longitude + self.longitude_diff
return location.latitude + self.latitude_diff, location.longitude + self.longitude_diff
2 changes: 1 addition & 1 deletion gpxpy/gpx.py
Expand Up @@ -2531,7 +2531,7 @@ def _add(interval, start, end, distances_ratios):
time_dist_after = (interval[-1].time_difference(end),
interval[-1].distance_3d(end))

# Assemble list of times and distance to neighboring points
# Assemble list of times and distance to neighbour points
times_dists = [(interval[i].time_difference(interval[i+1]),
interval[i].distance_3d(interval[i+1]))
for i in range(len(interval) - 1)]
Expand Down
14 changes: 7 additions & 7 deletions test.py
Expand Up @@ -575,7 +575,7 @@ def test_split_and_join(self):
track.join(0)
self.assertTrue(len(track.segments) == 1)

# Check that this splitted and joined track is the same as the original one:
# Check that this split and joined track is the same as the original one:
self.assertTrue(equals(track, original_track))

def test_remove_point_from_segment(self):
Expand Down Expand Up @@ -1206,7 +1206,7 @@ def test_ignore_maximums_for_max_speed(self):
mod_logging.debug('max_speed = %s', max_speed_with_equal_speeds)
self.assertTrue(max_speed_with_equal_speeds > 0)

# When we add to few extreemes, they should be ignored:
# When we add too few extremes, they should be ignored:
for i in range(10):
segment_2.points.append(mod_gpx.GPXTrackPoint(latitude=0, longitude=tmp_longitude, time=tmp_time))
tmp_longitude += 0.7
Expand All @@ -1215,7 +1215,7 @@ def test_ignore_maximums_for_max_speed(self):

self.assertTrue(abs(max_speed_with_extreemes - max_speed_with_equal_speeds) < 0.001)

# But if there are many extreemes (they are no more extreemes):
# But if there are many extremes (they are no more extremes):
for i in range(100):
# Sometimes add on start, sometimes on end:
if i % 2 == 0:
Expand Down Expand Up @@ -1516,7 +1516,7 @@ def test_simplify(self):

print(length_2d_original, length_2d_after_distance_10, length_2d_after_distance_50)

# When simplifying the resulting disnatce should alway be less than the original:
# When simplifying the resulting distance should alway be less than the original:
self.assertTrue(length_2d_original >= length_2d_after_distance_10)
self.assertTrue(length_2d_original >= length_2d_after_distance_50)

Expand Down Expand Up @@ -1630,7 +1630,7 @@ def test_location_delta(self):
location = mod_geo.Location(-20, -50)

location_2 = location + mod_geo.LocationDelta(angle=45, distance=100)
self.assertTrue(cca(location_2.latitude - location.latitude, location_2.longitude - location.longitude))
self.assertTrue(cca(location_2.latitude - location.latitude, location_2.longitude - location.longitude))

def test_location_equator_delta_distance_111120(self):
self.__test_location_delta(mod_geo.Location(0, 13), 111120)
Expand Down Expand Up @@ -1691,7 +1691,7 @@ def test_gpx_10_fields(self):
original_dom = mod_minidom.parseString(xml)
reparsed_dom = mod_minidom.parseString(reparsed_gpx.to_xml())

# Validated with SAXParser in "make test"
# Validated with SAXParser in "make test"
with open('validation_gpx10.gpx', 'w') as f:
f.write(reparsed_gpx.to_xml())

Expand Down Expand Up @@ -2334,7 +2334,7 @@ def test_gpx_11_fields(self):
self.assertEquals(1, len(gpx.tracks[0].segments[0].points[0].extensions))
self.assertEquals('true', gpx.tracks[0].segments[0].points[0].extensions['last'])

# Validated with SAXParser in "make test"
# Validated with SAXParser in "make test"

# Clear extensions because those should be declared in the <gpx> but
# gpxpy don't have support for this (yet):
Expand Down

0 comments on commit b2185ae

Please sign in to comment.