dodo-saba / fit2gpx Goto Github PK
View Code? Open in Web Editor NEWA simple Python library for converting .FIT files to .GPX files. It also includes tools to convert Strava data downloads in bulk to GPX.
License: GNU General Public License v3.0
A simple Python library for converting .FIT files to .GPX files. It also includes tools to convert Strava data downloads in bulk to GPX.
License: GNU General Public License v3.0
Would it be possible to embed a CLI inside the package, to even more simplify its usage? A very naive version (the one from the README) would be perfect eg something like:
fit2gpx <input_folder> <output_folder>
I don't know how hard it is to embedded an exec, but that would be awesome! And thanks a lot for this package :)
Was getting error below. Somewhere in the 'activites.csv' file there are NaN values that cause an issue. Not sure what the best way to fix it is, but simply adding a line 'df_acts = df_acts.fillna('')' worked for me.
Traceback (most recent call last):
File "gpxconvert.py", line 20, in
strava_conv.strava_fit_to_gpx()
File "env/lib/python3.8/site-packages/fit2gpx.py", line 341, in strava_fit_to_gpx
md = df_acts.loc[df_acts['Filename'].str.contains(f_activity)].iloc[0, :].to_dict()
File "env/lib/python3.8/site-packages/pandas/core/indexing.py", line 967, in getitem
return self._getitem_axis(maybe_callable, axis=axis)
File "env/lib/python3.8/site-packages/pandas/core/indexing.py", line 1181, in _getitem_axis
elif com.is_bool_indexer(key):
File "/env/lib/python3.8/site-packages/pandas/core/common.py", line 144, in is_bool_indexer
raise ValueError(na_msg)
ValueError: Cannot mask with non-boolean array containing NA / NaN values
Hi, thanks a lot for this tool!
Altitude/Elevation returns NaN both when reading fit (Strava) to df or when exporting to gpx.
Please, find attached one of my activities.
Thank you and best,
Pedro
8718041686.fit.gz
Hi
Since I'm not a programmer but I do know how to follow instructions I'm stuck at yours. How exactly can I achieve converting a bunch of FIT files in a directory?
I'm confused about where to put code from the instructions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.