Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
sbettid committed Sep 24, 2022
2 parents 3666673 + 6492237 commit 7081eee
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setuptools.setup(
name="gpsclean",
version="1.0.0",
version="1.0.1",
author="Davide Sbetti",
author_email="[email protected]",
description="An application to correct a GPS trace using machine learning techniques",
Expand Down
6 changes: 1 addition & 5 deletions src/gpsclean.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
Metadata-Version: 2.1
Name: gpsclean
Version: 1.0.0
Version: 1.0.1
Summary: An application to correct a GPS trace using machine learning techniques
Home-page: https://github.com/sbettid/GPSClean
Author: Davide Sbetti
Author-email: [email protected]
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/sbettid/GPSClean/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Expand Down Expand Up @@ -81,5 +79,3 @@ In order to run the application, please follow the subsequent steps:
2) Install the downloaded package by executing the following command: `pip install --extra-index-url https://google-coral.github.io/py-repo/ gpsclean-x.y.z-py3-none-any.whl`
3) Now you are ready to clean your first GPS trace by executing the following command: `gpsclean path/to/your_trace.gpx`
4) In the same folder where the original trace resides, you will find a cleaned version of the trace with the suffix "_cleaned"


1 change: 0 additions & 1 deletion src/gpsclean.egg-info/entry_points.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
[console_scripts]
gpsclean = gpsclean.gpsclean:main

13 changes: 12 additions & 1 deletion src/gpsclean/gpsclean.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import matplotlib

#current version of the program
__VERSION__ = "1.0.0"
__VERSION__ = "1.0.1"

def main():

Expand Down Expand Up @@ -63,6 +63,17 @@ def main():

points = np.array(points)
times = np.array(times)

# check we have at least a point
if points.size == 0:
print("""TRACE ERROR:
No points have been detected in your GPS trace. Please note the tool expects
at least a track with a segment containing a point to be considered valid and
waypoints are excluded.
You can consult https://wiki.openstreetmap.org/wiki/GPX for more.
""")
return

#create the deltas using the associated function
deltas = gt.create_deltas(points, times)

Expand Down
2 changes: 1 addition & 1 deletion src/gpsclean/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ art==5.3
filterpy==1.4.5
geojson==2.5.0
gpxpy==1.4.2
numpy==1.21.4
numpy==1.22.0
pandas==0.25.3
pyproj==3.1.0
scipy==1.6.1
Expand Down

0 comments on commit 7081eee

Please sign in to comment.