firefly-cpp / sport-activities-features Goto Github PK
View Code? Open in Web Editor NEWA minimalistic toolbox for extracting features from sports activity files written in Python
License: MIT License
A minimalistic toolbox for extracting features from sports activity files written in Python
License: MIT License
'activity_generator' module is under early WIP.
Current description is obsolete. @rhododendrom, please prepare a fresh description of this software. Thanks!
FTP metric should be implemented and included in this package.
The current visualization of hills is fundamental. It may be a good idea to make a visualization more attractive, especially if we want to use it also in papers.
It would appear detected hills can overlap. After creation of visuals of hill climbs using the algorithm, I've noticed weird behavior when processing the data further - my bug seems to appear from hills being allowed to overlap, which I don't know if is the desired behavior. Here is the issue visualized in google earth -
There are actually 4 dots in the picture
Here are the two hills on top of each other
This is an outtake of my exported and processed XML file
The problem isn't export related as I can see the values in my debugger. I'm attaching the problematic file bellow
@KukovecRok, thanks.
Hi @spelap,
please extend README with installation instructions for Anaconda users (especially for Windows ecosystems).
If there is a chance, please try to provide also conda-build recipe for this package. https://docs.conda.io/projects/conda-build/en/latest/concepts/recipe.html
A very similar recipe was created for NiaPy package: https://github.com/NiaOrg/NiaPy/tree/master/conda
@lahovniktadej, please
Hi, when I tried to compile from source 0.3.15 I got the following message
==> Retrieving sources...
-> Downloading sport-activities-features-0.3.15.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 4468k 0 4468k 0 0 5834k 0 --:--:-- --:--:-- --:--:-- 9.9M
==> Validating source files with sha512sums...
sport-activities-features-0.3.15.tar.gz ... Passed
==> Extracting sources...
-> Extracting sport-activities-features-0.3.15.tar.gz with bsdtar
==> Starting build()...
ERROR Failed to validate `build-system` in pyproject.toml: Unknown properties: exclude
==> ERROR: A failure occurred in build().
Aborting...
Similar issue https://github.com/orgs/python-poetry/discussions/8111
Please, @KukovecRok
Copied link : https://goo.gl/maps/utCLQRV2c4VUpcJDA
Used : https://mapstogpx.com/ to get .gpx file
Error occurred when reading downloaded file
Add tests for GPXFile, InterruptionProcessor, OverpyNodesReader, WeatherIdentification.
@KukovecRok, please add yourself to the list of authors in pyproject
@zala-lahovnik, after your committed changes, tests are failing. Please fix them.
We should improve currect code quality.
@lukapecnik - Please include black and autoflake scripts when you have a time :)
We should provide a support for discovery of dead ends, e. g. https://en.wikipedia.org/wiki/Dead_end_(street)
It would be nice to return the information, whether the cyclist encountered a dead end (or more than one) during the workout.
@luckyLukac - can we assign it to you?
Description: Implement "segments" functionality - similar to what we can see in Strava.
Input: segment which is represented as a path (collection of GPS points); a collection of sports activities
Output: Table of results
@rhododendrom, can we ask you to draw one simple logo for this project?
We should support also processing of gpx files. Current version of software has a support for tcx files only.
@alenrajsp, your tests are failing. Please check it out!
FAILED sport_activities_features/tests/test_overpy_node_manipulation.py::TestWeather::test_generated_object_altitudes - json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
FAILED sport_activities_features/tests/test_overpy_node_manipulation.py::TestWeather::test_generated_object_properties - json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
activity = tcx_file.read_one_file('dead_end.tcx')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/sport_activities_features/tcx_manipulation.py", line 57, in read_one_file
tcx = TCXReader().read(filename)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/tcxreader/tcxreader.py", line 48, in read
self.trackpoint_parser(tcx_point, trackpoint)
File "/usr/lib/python3.11/site-packages/tcxreader/tcxreader.py", line 116, in trackpoint_parser
tcx_point.time = datetime.datetime.strptime(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/_strptime.py", line 568, in _strptime_datetime
tt, fraction, gmtoff_fraction = _strptime(data_string, format)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/_strptime.py", line 349, in _strptime
raise ValueError("time data %r does not match format %r" %
ValueError: time data '2021-09-29T15:17:30Z' does not match format '%Y-%m-%dT%H:%M:%S.%fZ'
Hi @luckyLukac,
ERROR collecting sport_activities_features/tests/test_area_identification.py _
ImportError while importing test module '/builddir/build/BUILD/sport-activities-features-0.2.6/sport_activities_features/tests/test_area_identification.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.10/importlib/init.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
sport_activities_features/tests/test_area_identification.py:4: in
from sport_activities_features.area_identification import AreaIdentification
sport_activities_features/area_identification.py:1: in
import geotiler
E ModuleNotFoundError: No module named 'geotiler'
The seaborn-whitegrid
style used in this package was renamed and deprecated in Matplotlib 3.6 The upcoming Matplotlib 3.8 release has removed the deprecated names and will cause this package to fail to import, e.g.,
______________ ERROR collecting tests/test_area_identification.py ______________
/usr/lib64/python3.12/site-packages/matplotlib/style/core.py:137: in use
style = _rc_params_in_file(style)
/usr/lib64/python3.12/site-packages/matplotlib/__init__.py:869: in _rc_params_in_file
with _open_file_or_url(fname) as fd:
/usr/lib64/python3.12/contextlib.py:137: in __enter__
return next(self.gen)
/usr/lib64/python3.12/site-packages/matplotlib/__init__.py:846: in _open_file_or_url
with open(fname, encoding='utf-8') as f:
E FileNotFoundError: [Errno 2] No such file or directory: 'seaborn-whitegrid'
The above exception was the direct cause of the following exception:
tests/test_area_identification.py:6: in <module>
from sport_activities_features.area_identification import AreaIdentification
sport_activities_features/__init__.py:18: in <module>
from sport_activities_features.plot_data import PlotData
sport_activities_features/plot_data.py:3: in <module>
plt.style.use('seaborn-whitegrid')
/usr/lib64/python3.12/site-packages/matplotlib/style/core.py:139: in use
raise OSError(
E OSError: 'seaborn-whitegrid' is not a valid package style, path of style file, URL of style file, or library style name (library styles are listed in `style.available`)
COMMAND: poetry build
RuntimeError
The Poetry configuration is invalid:
- Additional properties are not allowed ('group' was unexpected)
at /usr/lib/python3.11/site-packages/poetry/core/factory.py:43 in create_poetry
39│ message = ""
40│ for error in check_result["errors"]:
41│ message += " - {}\n".format(error)
42│
→ 43│ raise RuntimeError("The Poetry configuration is invalid:\n" + message)
44│
45│ # Load package
46│ name = local_config["name"]
47│ version = local_config["version"]
please, @carlosal1015
'classes' module is under early WIP.
There are several TODOs in interruption identification algorithm.
Add descriptions of added features to readme, they are currently only added in the Examples folder.
@all-contributors please add @alenrajsp for maintenance
TSS metric should be implemented and included in this package.
https://support.garmin.com/en-US/?faq=9EOIDzMcjx7kFqTJUGqHj5
GPX and TCX file extensions are now supported by this software. However, support for FIT files is still missing. It is heavily used by Garmin as well as Zwift.
Any volunteers for working on this task? @alenrajsp or @luckyLukac?
Hi @lukapecnik,
your test is now failing. Can you please check it out? There are probably problems with the new niapy interface.
assigned to @luckyLukac.
From a parsed TCX / GPX file detect interruptions
Latexmk: Run number 1 of rule 'pdflatex'
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
Latexmk: ====Undefined refs and citations with line #s in .tex file:
! LaTeX Error: Unicode character 🚀 (U+1F680)
! LaTeX Error: Unicode character 💪 (U+1F4AA)
! LaTeX Error: Unicode character 🔍 (U+1F50D)
! LaTeX Error: Unicode character ⏱ (U+23F1)
! LaTeX Error: Unicode character (U+FE0F)
! LaTeX Error: Unicode character 🚴 (U+1F6B4)
! LaTeX Error: Unicode character (U+200D)
And 89 more --- see log file 'sport-activities-features.log'
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.