-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Few minor tweaks for your tool #16
base: master
Are you sure you want to change the base?
Conversation
Interesting fixes |
I plan to add a time lapse feature... I hope to find spare time to do it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Read, writing and reading the files again is not exactly efficient, and I would prefer not to modify the files.
We can do those replacements in memory, if you are still up for it.
# converting files | ||
for gpx_file in gpx_files: | ||
print('Converting {}'.format(os.path.basename(gpx_file))) | ||
with open(gpx_file, encoding='utf-8') as file: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding try catch since this is file operation
I was willing to generate heat map from gpx tracks generated by Polar watch (not strava).
Those files are non formatted, everything on the same line. Thus I had to convert those files before processing them.
I also added recursive search in GPX directory (my tracks were sorted by year)
And least important, I had to change one minor thing about tuple for python 3.8 to be supported.
If you think those are of interest, feel free to pull them.