Skip to content

Commit

Permalink
python 3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
XiangwenWang committed Jul 21, 2020
1 parent 7ed70cc commit f2beed0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion GPSminCir.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
'''
@Author: Xiangwen Wang
@Version: 1.0.3
@Version: 1.0.5
@Description: A tool to calculate the radius of the smallest circle which covers the given GPS track.
@Input: [[lat1, lon1], [lat2, lon2], [lat3, lon3], ...]
@Output: (O, r), where O and r are respectively the position and the radius of the smallest circle.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ GPSpairs = [[51.764865, -0.003145], [51.764865, -0.003145], [51.764865, -0.00314
[51.764190, -0.003530], [51.764068, -0.005696], [51.764053, -0.007808],
[51.764746, -0.008535], [51.764721, -0.009518], [51.765195, -0.010123]]
res = GPSminCir.MinCir(GPSpairs)
print res
print(res)
```
The output would be:
```
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
setup(
name='GPSminCir',
py_modules=["GPSminCir"],
version='1.0.3',
version='1.0.5',
description='A tool to calculate the position and radius of the smallest circle that covers the given GPS track.',
author='Xiangwen Wang',
author_email='[email protected]',
url='https://github.com/XiangwenWang/GPSminCir',
download_url='https://github.com/XiangwenWang/GPSminCir/tarball/1.0.3',
license="MIT",
keywords=['GPS', 'smallest circle'],
classifiers=[],
Expand Down

0 comments on commit f2beed0

Please sign in to comment.