rowingdata 3.8.5__tar.gz → 3.8.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rowingdata-3.8.5/rowingdata.egg-info → rowingdata-3.8.7}/PKG-INFO +1 -1
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/csvparsers.py +8 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/data/fit_export_spec.json +2 -19
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/fitwrite.py +66 -99
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/fitwrite_spec.py +2 -2
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/otherparsers.py +13 -6
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/rowingdata.py +1 -2
- {rowingdata-3.8.5 → rowingdata-3.8.7/rowingdata.egg-info}/PKG-INFO +1 -1
- {rowingdata-3.8.5 → rowingdata-3.8.7}/tests/test_fit_instroke_export.py +138 -69
- {rowingdata-3.8.5 → rowingdata-3.8.7}/tests/test_fit_standard.py +1 -13
- {rowingdata-3.8.5 → rowingdata-3.8.7}/tests/test_rowingdata.py +16 -56
- {rowingdata-3.8.5 → rowingdata-3.8.7}/LICENSE +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/MANIFEST.in +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/README.rst +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/bin/crewnerddata.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/bin/crewnerddata.tcx +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/bin/testdata.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/.buildinfo +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_images/2x20min.png +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_images/editrower.JPG +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_images/greghoc.png +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_images/image001.png +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_images/otwlogbook.JPG +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_images/otwscreenshot.JPG +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_images/screenshot.JPG +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_images/screenshotlogbook.JPG +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_images/woensdag.png +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_sources/index.txt +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_sources/modules.txt +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_sources/rowingdata.txt +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_static/ajax-loader.gif +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_static/alabaster.css +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_static/basic.css +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_static/comment-bright.png +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_static/comment-close.png +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_static/comment.png +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_static/custom.css +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_static/doctools.js +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_static/down-pressed.png +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_static/down.png +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_static/file.png +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_static/jquery-1.11.1.js +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_static/jquery.js +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_static/minus.png +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_static/plus.png +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_static/pygments.css +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_static/searchtools.js +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_static/underscore-1.3.1.js +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_static/underscore.js +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_static/up-pressed.png +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_static/up.png +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/_static/websupport.js +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/genindex.html +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/index.html +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/modules.html +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/objects.inv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/py-modindex.html +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/rowingdata.html +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/search.html +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/docs/_build/html/searchindex.js +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/__init__.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/__main__.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/boatedit.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/checkdatafiles.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/copystats.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/crewnerdplot.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/crewnerdplottime.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/ergdataplot.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/ergdataplottime.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/ergdatatotcx.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/ergstickplot.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/ergstickplottime.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/ergsticktotcx.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/fit_garmin_bridge.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/fit_transcode.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/gpxtools.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/gpxwrite.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/konkatenaadje.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/laptesting.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/obsolete.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/painsled_desktop_plot.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/painsled_desktop_plottime.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/painsled_desktop_toc2.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/painsledplot.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/painsledplottime.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/painsledtoc2.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/roweredit.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/rowproplot.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/rowproplottime.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/speedcoachplot.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/speedcoachplottime.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/speedcoachtoc2.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/tcxplot.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/tcxplot_nogeo.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/tcxplottime.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/tcxplottime_nogeo.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/tcxtoc2.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/tcxtools.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/trainingparser.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/utils.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/windcorrected.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata/writetcx.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata.egg-info/SOURCES.txt +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata.egg-info/dependency_links.txt +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata.egg-info/not-zip-safe +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata.egg-info/requires.txt +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/rowingdata.egg-info/top_level.txt +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/setup.cfg +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/setup.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/2016-03-25-0758.CSV +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/2016-03-25-0758_data.CSV +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/2x20min_o.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/2x2km.tcx +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/3km_cd_o.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/3x250m.tcx +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/EUBoatCoach.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/EmpowerSpeedCoachForce.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/NKEmporfromgreg.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/NKLiNKv130.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/NoHR.tcx +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/PainsledForce.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/RP_interval.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/RP_interval.csv_o.CSV +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/RP_testdata.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/SpdCoach2_imp_inconsistent.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/SpdCoachAmbiguous.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/SpeedCoach GPS Workout.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/SpeedCoach2Link_interval.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/SpeedCoach2Linkv1.27.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/SpeedCoach2v2.12.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/Speedcoach2example.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/aritmo.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/bc1.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/bc2.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/bc3.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/boatcoach.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/boatcoach_fixed_distance.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/boatcoach_otw.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/correctedpainsled.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/cottwich.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/coxmate.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/crewnerd_interval.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/crewnerddata.CSV +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/crewnerddata.tcx +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/crewnerddata_o.CSV +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/cumvalues.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/ergdata_example.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/ergdata_example.csv_o.CSV +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/ergstick.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/ergstick.csv_o.CSV +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/ergstick2.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/ergstick_o.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/example.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/example_data.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/faketcx.tcx +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/float.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/herodata.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/humon.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/impeller_empower.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/invalidchar.tcx +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/kinomap.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/mystery.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/nk_logbook.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/painsled.tcx +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/painsled_desktop_example.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/painsled_out_data.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/painsled_to_csv_20160221-105218_erg-400150318_760465m.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/quiske_per_stroke_left.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/quiske_per_stroke_new.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/quiske_per_stroke_right.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/quiske_per_stroke_seat.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/recover.tcx +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/ritmointervals.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/rowingdata_eth.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/rowinginmotionexample.TCX +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/rowinginmotionexample.TCX_o.CSV +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/rowperfect.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/rowpro5.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/rowpro_carrick.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/rp3_curve.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/rp3intervals.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/rp3intervals2.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/rp_out.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/smartrow.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/smartrow_intervals.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/spdcoach2noheader.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/speedcoach2test2.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/speedcoach3test3.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/speedcoachexample.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/speedcoachexample.csv_o.CSV +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/strava_export.tcx +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/summarytest.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/testdata.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/testdata_part1.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/testdata_part2.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/testdatasummary.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/testlapidx.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/testtcs_210614.tcx +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/testtcx.tcx +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/testtcx_210614.tcx +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata/tim.csv +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/testdata//345/210/222/350/210/271.csv" +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/tests/test_fit_transcode.py +0 -0
- {rowingdata-3.8.5 → rowingdata-3.8.7}/tests/testparser.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: rowingdata
|
|
3
|
-
Version: 3.8.
|
|
3
|
+
Version: 3.8.7
|
|
4
4
|
Summary: The rowingdata library to create colorful plots from CrewNerd, Painsled and other rowing data tools
|
|
5
5
|
Home-page: https://github.com/sanderroosendaal/rowingdata
|
|
6
6
|
Author: Sander Roosendaal
|
|
@@ -1174,6 +1174,12 @@ class QuiskeParser(CSVParser):
|
|
|
1174
1174
|
self.df[self.columns['catch']] = 0
|
|
1175
1175
|
self.df[self.columns['finish']] = self.df['stroke angle (deg)']
|
|
1176
1176
|
|
|
1177
|
+
# distance per stroke (m): boat speed over stroke rate
|
|
1178
|
+
spm = pd.to_numeric(self.df[self.columns[' Cadence (stokes/min)']], errors='coerce')
|
|
1179
|
+
strokelength = velo / (spm.replace(0, np.nan) / 60.)
|
|
1180
|
+
self.df[self.columns[' StrokeDistance (meters)']] = strokelength.replace(
|
|
1181
|
+
[np.inf, -np.inf], np.nan).fillna(0.0).clip(lower=0.0)
|
|
1182
|
+
|
|
1177
1183
|
self.to_standard()
|
|
1178
1184
|
|
|
1179
1185
|
class BoatCoachOTWParser(CSVParser):
|
|
@@ -2227,6 +2233,8 @@ class RowPerfectParser(CSVParser):
|
|
|
2227
2233
|
self.df[self.columns[' StrokeRecoveryTime (ms)']] *= 1000.
|
|
2228
2234
|
self.df[self.columns[' PeakDriveForce (lbs)']] /= lbstoN
|
|
2229
2235
|
self.df[self.columns[' DriveLength (meters)']] /= 100.
|
|
2236
|
+
# RowPerfect reports distance per stroke in cm
|
|
2237
|
+
self.df[self.columns[' StrokeDistance (meters)']] /= 100.
|
|
2230
2238
|
|
|
2231
2239
|
wperstroke = self.df['energy_per_stroke']
|
|
2232
2240
|
fav = wperstroke / self.df[self.columns[' DriveLength (meters)']]
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version":
|
|
2
|
+
"version": 6,
|
|
3
3
|
"protocol_version": 1,
|
|
4
4
|
"handle_force_curve_field_id": 60,
|
|
5
|
-
"_comment": "Authoritative FIT developer field definitions for rowingdata fitwrite. Field IDs, scales and units must match the Rowing Data Standard registry at https://github.com/Rowing-Industry-Trade-Association/rowing-data-standard (registry/field-ids.md); that repository is the source of truth, this file is only rowingdata's machine-readable copy of the subset it emits. v2: mm precision for DriveLength/PeakForcePositionAbs (scale 1000); StrokeRate dev field (93); instroke curve Y-scale registry. v5: main of 2026-11-05: record field 9 (WorkoutState) was removed from the standard and its ID is reserved, so it is read-only here (group legacy) and never written; always_emit_field_ids is empty (axis fields 90-92 are only written with curve data and never as UNKNOWN). v4: main of 2026-10-31: AverageBoatSpeed scale 100; EffectiveLength -> EffectiveArc (deg, scale 10; 16, 210, 211); force fields named without the N suffix. v3: standard draft 0.1: WorkoutState holds FIT intensity values; StrokeState (96); SlipThreshold/WashThreshold (94/95); HandleForceCurve fixed at 60; fields 4, 5 and 93 are not in the standard and are read-only (group legacy).",
|
|
5
|
+
"_comment": "Authoritative FIT developer field definitions for rowingdata fitwrite. Field IDs, scales and units must match the Rowing Data Standard registry at https://github.com/Rowing-Industry-Trade-Association/rowing-data-standard (registry/field-ids.md); that repository is the source of truth, this file is only rowingdata's machine-readable copy of the subset it emits. v2: mm precision for DriveLength/PeakForcePositionAbs (scale 1000); StrokeRate dev field (93); instroke curve Y-scale registry. v6: in-stroke summary fields (20-59, reserved in the standard) and the non-standard curve types (BoatAccelerator, OarAngleVelocity, Seat) are no longer written to FIT; only HandleForceCurve (60) is, other curves go to the companion JSON. v5: main of 2026-11-05: record field 9 (WorkoutState) was removed from the standard and its ID is reserved, so it is read-only here (group legacy) and never written; always_emit_field_ids is empty (axis fields 90-92 are only written with curve data and never as UNKNOWN). v4: main of 2026-10-31: AverageBoatSpeed scale 100; EffectiveLength -> EffectiveArc (deg, scale 10; 16, 210, 211); force fields named without the N suffix. v3: standard draft 0.1: WorkoutState holds FIT intensity values; StrokeState (96); SlipThreshold/WashThreshold (94/95); HandleForceCurve fixed at 60; fields 4, 5 and 93 are not in the standard and are read-only (group legacy).",
|
|
6
6
|
"instroke_dynamic": {
|
|
7
|
-
"summary_start": 20,
|
|
8
|
-
"summary_id_padding": "ceil_to_10",
|
|
9
7
|
"curve_start": 60
|
|
10
8
|
},
|
|
11
9
|
"instroke_curve_types": {
|
|
@@ -13,21 +11,6 @@
|
|
|
13
11
|
"y_scale": 10,
|
|
14
12
|
"y_units": "N",
|
|
15
13
|
"default_abscissa": "HANDLE_DISTANCE_UNIFORM_M"
|
|
16
|
-
},
|
|
17
|
-
"BoatAcceleratorCurve": {
|
|
18
|
-
"y_scale": 100,
|
|
19
|
-
"y_units": "m/s^2",
|
|
20
|
-
"default_abscissa": "TIME_UNIFORM_MS"
|
|
21
|
-
},
|
|
22
|
-
"OarAngleVelocityCurve": {
|
|
23
|
-
"y_scale": 10,
|
|
24
|
-
"y_units": "deg/s",
|
|
25
|
-
"default_abscissa": "TIME_UNIFORM_MS"
|
|
26
|
-
},
|
|
27
|
-
"SeatCurve": {
|
|
28
|
-
"y_scale": 255,
|
|
29
|
-
"y_units": "m",
|
|
30
|
-
"default_abscissa": "HANDLE_DISTANCE_UNIFORM_M"
|
|
31
14
|
}
|
|
32
15
|
},
|
|
33
16
|
"abscissa_enum": {
|
|
@@ -22,6 +22,7 @@ from . import fit_garmin_bridge
|
|
|
22
22
|
try:
|
|
23
23
|
from fit_tool.base_type import BaseType
|
|
24
24
|
from fit_tool.developer_field import DeveloperField
|
|
25
|
+
from fit_tool.field import Field
|
|
25
26
|
from fit_tool.fit_file_builder import FitFileBuilder
|
|
26
27
|
from fit_tool.profile.messages.developer_data_id_message import DeveloperDataIdMessage
|
|
27
28
|
from fit_tool.profile.messages.field_description_message import FieldDescriptionMessage
|
|
@@ -95,13 +96,8 @@ ALWAYS_EMIT_DEV_FIELD_IDS = frozenset(_FIT_EXPORT_RAW['always_emit_field_ids'])
|
|
|
95
96
|
# UUID v5 generated from DNS namespace with name "rowingdata" for deterministic, unique ID.
|
|
96
97
|
ROWINGDATA_APP_ID = uuid.uuid5(uuid.NAMESPACE_DNS, 'rowingdata').bytes
|
|
97
98
|
|
|
98
|
-
#
|
|
99
|
-
#
|
|
100
|
-
# committee allocation. HandleForceCurve (60) and axis metadata 90-92 are
|
|
101
|
-
# assigned and stay under ROWINGDATA_APP_ID; other curves go to the companion
|
|
102
|
-
# JSON file (standard §6.1).
|
|
103
|
-
INSTROKE_APP_ID = uuid.uuid5(uuid.NAMESPACE_DNS, 'rowingdata.instroke').bytes
|
|
104
|
-
INSTROKE_DEV_DATA_IDX = 1
|
|
99
|
+
# Only HandleForceCurve (60) and axis metadata 90-92 go in the FIT file, under
|
|
100
|
+
# ROWINGDATA_APP_ID; every other curve goes to the companion JSON file (standard §6.1).
|
|
105
101
|
|
|
106
102
|
# Canonical mapping: df column name -> FIT curve type name (RP3/Quiske); from fit_export_spec.json
|
|
107
103
|
INSTROKE_COLUMN_MAP = dict(_FIT_EXPORT_RAW['instroke_column_map'])
|
|
@@ -114,38 +110,6 @@ def _parse_instroke_curve(df, col):
|
|
|
114
110
|
return d.apply(pd.to_numeric, errors='coerce')
|
|
115
111
|
|
|
116
112
|
|
|
117
|
-
def _compute_instroke_summary(df, col):
|
|
118
|
-
"""
|
|
119
|
-
Compute per-stroke summary metrics for a curve column (q1..q4, diff, maxpos, minpos).
|
|
120
|
-
Mirrors add_instroke_metrics, add_instroke_diff, add_instroke_maxminpos from rowingdata.
|
|
121
|
-
Returns dict with keys q1,q2,q3,q4,diff,maxpos,minpos (each a 1D array of length len(df)).
|
|
122
|
-
"""
|
|
123
|
-
curve = _parse_instroke_curve(df, col)
|
|
124
|
-
dfnorm = curve.copy().abs()
|
|
125
|
-
row_max = dfnorm.T.max()
|
|
126
|
-
row_max = row_max.replace(0, np.nan)
|
|
127
|
-
dfnorm = dfnorm.T / row_max.values
|
|
128
|
-
dfnorm = dfnorm.T
|
|
129
|
-
dfnorm = dfnorm.fillna(0)
|
|
130
|
-
|
|
131
|
-
ncol = len(dfnorm.columns)
|
|
132
|
-
markers = (np.arange(5) * ncol / 4).astype(int)
|
|
133
|
-
q1 = dfnorm.iloc[:, markers[0]:markers[1]].mean(axis=1).rolling(10, min_periods=1).std().fillna(0).values
|
|
134
|
-
q2 = dfnorm.iloc[:, markers[1]:markers[2]].mean(axis=1).rolling(10, min_periods=1).std().fillna(0).values
|
|
135
|
-
q3 = dfnorm.iloc[:, markers[2]:markers[3]].mean(axis=1).rolling(10, min_periods=1).std().fillna(0).values
|
|
136
|
-
q4 = dfnorm.iloc[:, markers[3]:markers[4]].mean(axis=1).rolling(10, min_periods=1).std().fillna(0).values
|
|
137
|
-
|
|
138
|
-
diff_mat = dfnorm.diff(axis=0).fillna(0) ** 2
|
|
139
|
-
diff_arr = (diff_mat.sum(axis=1) / float(ncol)).fillna(0).values
|
|
140
|
-
|
|
141
|
-
min_idxs = dfnorm.idxmin(axis=1)
|
|
142
|
-
max_idxs = dfnorm.idxmax(axis=1)
|
|
143
|
-
maxpos = (max_idxs.astype(float) / ncol).fillna(0).values
|
|
144
|
-
minpos = (min_idxs.astype(float) / ncol).fillna(0).values
|
|
145
|
-
|
|
146
|
-
return {'q1': q1, 'q2': q2, 'q3': q3, 'q4': q4, 'diff': diff_arr, 'maxpos': maxpos, 'minpos': minpos}
|
|
147
|
-
|
|
148
|
-
|
|
149
113
|
def _downsample_instroke_curve(df, col, n_points):
|
|
150
114
|
"""Downsample each row's curve to n_points. Returns list of arrays, one per row."""
|
|
151
115
|
curve = _parse_instroke_curve(df, col)
|
|
@@ -166,6 +130,23 @@ def _downsample_instroke_curve(df, col, n_points):
|
|
|
166
130
|
return result
|
|
167
131
|
|
|
168
132
|
|
|
133
|
+
def _instroke_row_point_counts(df, col, n_points):
|
|
134
|
+
"""
|
|
135
|
+
Number of real samples each record's curve carries in the FIT file.
|
|
136
|
+
|
|
137
|
+
A curve is written at its own length (at most ``n_points``): short strokes are not
|
|
138
|
+
padded, so InstrokePointCount and InstrokeSampleInterval describe every record
|
|
139
|
+
truthfully. Rows with fewer than 2 samples carry no curve (count 0).
|
|
140
|
+
"""
|
|
141
|
+
curve = _parse_instroke_curve(df, col)
|
|
142
|
+
counts = np.zeros(len(curve), dtype=int)
|
|
143
|
+
for i in range(len(curve)):
|
|
144
|
+
row = curve.iloc[i].dropna().values
|
|
145
|
+
n = int(np.count_nonzero(np.isfinite(row)))
|
|
146
|
+
counts[i] = min(n, int(n_points)) if n >= 2 else 0
|
|
147
|
+
return counts
|
|
148
|
+
|
|
149
|
+
|
|
169
150
|
def _get_instroke_curve_for_export(df, col, mode, downsample_points):
|
|
170
151
|
"""
|
|
171
152
|
Get in-stroke curve array for FIT export.
|
|
@@ -342,7 +323,9 @@ def _compute_instroke_axis_arrays(df, n_points, instroke_abscissa_type, instroke
|
|
|
342
323
|
must not write a placeholder interval (§7.2). The caller then leaves the curve out.
|
|
343
324
|
"""
|
|
344
325
|
nr = len(df)
|
|
345
|
-
|
|
326
|
+
# n_points is one count for every record, or one count per record (0 = no curve)
|
|
327
|
+
npts = np.broadcast_to(np.asarray(n_points, dtype=np.float64), (nr,))
|
|
328
|
+
if nr == 0 or npts.max() < 2:
|
|
346
329
|
return None
|
|
347
330
|
if instroke_abscissa_type is not None:
|
|
348
331
|
atype = int(instroke_abscissa_type)
|
|
@@ -362,19 +345,37 @@ def _compute_instroke_axis_arrays(df, n_points, instroke_abscissa_type, instroke
|
|
|
362
345
|
df[' DriveLength (meters)'].values, nan=0.0, posinf=0.0, neginf=0.0
|
|
363
346
|
)
|
|
364
347
|
# Millimeters between uniform samples along handle travel
|
|
365
|
-
interval = np.round(drive_m * 1000.0 / np.maximum(
|
|
348
|
+
interval = np.round(drive_m * 1000.0 / np.maximum(npts - 1, 1))
|
|
366
349
|
interval = np.clip(interval, 0, UINT16_MAX_VALID)
|
|
367
350
|
elif atype == INSTROKE_ABSCISSA_TIME_UNIFORM_MS and ' DriveTime (ms)' in df.columns:
|
|
368
351
|
drive_ms = np.nan_to_num(df[' DriveTime (ms)'].values, nan=0.0, posinf=0.0, neginf=0.0)
|
|
369
|
-
interval = np.round(drive_ms / np.maximum(
|
|
352
|
+
interval = np.round(drive_ms / np.maximum(npts - 1, 1))
|
|
370
353
|
interval = np.clip(interval, 0, UINT16_MAX_VALID)
|
|
371
354
|
else:
|
|
372
355
|
return None # no way to derive the spacing: do not write a placeholder
|
|
373
|
-
|
|
356
|
+
interval = np.where(npts >= 2, interval, 0.0)
|
|
357
|
+
pc = np.where(npts >= 2, np.minimum(npts, 127.0), 0.0)
|
|
374
358
|
ta = np.full(nr, float(atype))
|
|
375
359
|
return ta, interval, pc
|
|
376
360
|
|
|
377
361
|
|
|
362
|
+
CYCLE_LENGTH16_FIELD_ID = 87
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
def _set_cycle_length16(rec, metres):
|
|
366
|
+
"""
|
|
367
|
+
Write native Record ``cycle_length16`` (field 87, UINT16, scale 100, m): distance per
|
|
368
|
+
stroke cycle, catch to catch (standard §4). fit-tool's Record profile does not define
|
|
369
|
+
this field (only the 8-bit ``cycle_length``, max 2.55 m), so it is added by hand.
|
|
370
|
+
"""
|
|
371
|
+
metres = min(max(metres, 0.0), UINT16_MAX_VALID / 100.0)
|
|
372
|
+
field = Field(name='cycle_length16', field_id=CYCLE_LENGTH16_FIELD_ID,
|
|
373
|
+
base_type=BaseType.UINT16, offset=0, scale=100, size=0, units='m',
|
|
374
|
+
type_name='', growable=True, sub_fields=[])
|
|
375
|
+
rec.fields.append(field)
|
|
376
|
+
field.set_value(0, metres)
|
|
377
|
+
|
|
378
|
+
|
|
378
379
|
# Sport string to FIT enum mapping
|
|
379
380
|
SPORT_MAP = {
|
|
380
381
|
'rowing': Sport.ROWING,
|
|
@@ -584,7 +585,6 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
584
585
|
``...(lbs)`` columns exist for backward compatibility (see ``fit_export_spec.json``).
|
|
585
586
|
instroke_export : str
|
|
586
587
|
'off' (default): no in-stroke curve export.
|
|
587
|
-
'summary': export q1,q2,q3,q4,diff,maxpos,minpos per curve as developer fields.
|
|
588
588
|
'downsampled': export fixed-length downsampled curve (UINT16 array) per stroke.
|
|
589
589
|
'full': export full-resolution curve up to 127 points per stroke (FIT size limit).
|
|
590
590
|
'companion': write curve data to .instroke.json sidecar file.
|
|
@@ -637,6 +637,12 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
637
637
|
if not FIT_TOOL_AVAILABLE:
|
|
638
638
|
raise ImportError("fit-tool is required for FIT export. Install with: pip install fit-tool")
|
|
639
639
|
|
|
640
|
+
if instroke_export not in ('off', 'downsampled', 'full', 'companion'):
|
|
641
|
+
raise ValueError(
|
|
642
|
+
"instroke_export must be 'off', 'downsampled', 'full' or 'companion' "
|
|
643
|
+
"(got %r; the 'summary' mode was removed because it used field IDs 20-59, "
|
|
644
|
+
"which the Rowing Data Standard reserves)" % (instroke_export,))
|
|
645
|
+
|
|
640
646
|
# Detect in-stroke columns early (for return value and overwrite check)
|
|
641
647
|
detected_instroke_cols = _detect_instroke_columns(df)
|
|
642
648
|
curve_cols_for_export = (
|
|
@@ -744,7 +750,7 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
744
750
|
stroke_distance = None
|
|
745
751
|
if ' StrokeDistance (meters)' in df.columns:
|
|
746
752
|
stroke_distance = np.nan_to_num(df[' StrokeDistance (meters)'].values, nan=0.0, posinf=0.0, neginf=0.0)
|
|
747
|
-
stroke_distance = np.clip(stroke_distance, 0, 655.
|
|
753
|
+
stroke_distance = np.clip(stroke_distance, 0, 655.34) # uint16 scale 100, below invalid 65535
|
|
748
754
|
|
|
749
755
|
# Stroke number for native total_cycles field (data is per-stroke, one record per stroke)
|
|
750
756
|
try:
|
|
@@ -767,15 +773,9 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
767
773
|
dev_arrays = {}
|
|
768
774
|
dev_specs = []
|
|
769
775
|
DEV_DATA_IDX = 0
|
|
770
|
-
|
|
776
|
+
instroke_row_points = None # per row: real samples of the HandleForceCurve
|
|
771
777
|
axis_row_ok = None # per row: the curve's X-axis is fully known (§6.3)
|
|
772
778
|
|
|
773
|
-
def _dev_index_for(field_id):
|
|
774
|
-
"""Developer data index: private namespace for unallocated curve IDs."""
|
|
775
|
-
if field_id in instroke_private_field_ids:
|
|
776
|
-
return INSTROKE_DEV_DATA_IDX
|
|
777
|
-
return DEV_DATA_IDX
|
|
778
|
-
|
|
779
779
|
if use_dev:
|
|
780
780
|
_spec = fitwrite_spec.load_fit_spec()
|
|
781
781
|
ROWING_DEV_FIELDS = _spec['ROWING_DEV_FIELDS']
|
|
@@ -855,10 +855,9 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
855
855
|
|
|
856
856
|
# In-stroke curve export (summary, downsampled, or companion)
|
|
857
857
|
instroke_curve_cols = []
|
|
858
|
-
instroke_summary_arrays = {}
|
|
859
858
|
instroke_downsampled_arrays = {}
|
|
860
859
|
col_map = instroke_column_map if instroke_column_map is not None else INSTROKE_COLUMN_MAP
|
|
861
|
-
if instroke_export in ('
|
|
860
|
+
if instroke_export in ('downsampled', 'full', 'companion'):
|
|
862
861
|
curve_cols = instroke_columns if instroke_columns is not None else _detect_instroke_columns(df)
|
|
863
862
|
instroke_curve_cols = [c for c in curve_cols if c in df.columns]
|
|
864
863
|
# Validate: in-stroke data requires stroke-boundary recording
|
|
@@ -870,28 +869,7 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
870
869
|
"Curves are inherently per-stroke and require stroke-boundary recording. "
|
|
871
870
|
"Use recording_strategy=RECORDING_STRATEGY_STROKE_BOUNDARY (default) or RECORDING_STRATEGY_UNKNOWN."
|
|
872
871
|
)
|
|
873
|
-
if instroke_export
|
|
874
|
-
base_id = _FIT_EXPORT_RAW['instroke_dynamic']['summary_start']
|
|
875
|
-
for col in instroke_curve_cols:
|
|
876
|
-
canonical = col_map.get(col, col)
|
|
877
|
-
try:
|
|
878
|
-
summ = _compute_instroke_summary(df, col)
|
|
879
|
-
except (ValueError, KeyError, TypeError):
|
|
880
|
-
continue
|
|
881
|
-
for metric, arr in summ.items():
|
|
882
|
-
field_id = base_id
|
|
883
|
-
name = '%s_%s' % (canonical, metric)
|
|
884
|
-
arr = np.nan_to_num(arr, nan=0.0, posinf=0.0, neginf=0.0)
|
|
885
|
-
# UINT16: encoded = value * scale, must be <= 65534. Scale 1 => max display 65534
|
|
886
|
-
scale = 1
|
|
887
|
-
arr = np.clip(arr, 0, UINT16_MAX_VALID / max(scale, 1))
|
|
888
|
-
dev_arrays[field_id] = arr
|
|
889
|
-
dev_specs.append((field_id, col, name, BaseType.UINT16, 2, scale, ''))
|
|
890
|
-
instroke_private_field_ids.add(field_id)
|
|
891
|
-
instroke_summary_arrays.setdefault(col, {})[metric] = field_id
|
|
892
|
-
base_id += 1
|
|
893
|
-
base_id = (base_id // 10 + 1) * 10
|
|
894
|
-
elif instroke_export in ('downsampled', 'full') and instroke_curve_cols and use_dev:
|
|
872
|
+
if instroke_export in ('downsampled', 'full') and instroke_curve_cols and use_dev:
|
|
895
873
|
for col in instroke_curve_cols:
|
|
896
874
|
canonical = col_map.get(col, col)
|
|
897
875
|
if canonical != HANDLE_FORCE_CURVE_NAME:
|
|
@@ -912,29 +890,21 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
912
890
|
continue
|
|
913
891
|
arr_2d = np.array(curves_list, dtype=np.float64)
|
|
914
892
|
size = n_points * 2
|
|
893
|
+
instroke_row_points = _instroke_row_point_counts(df, col, n_points)
|
|
915
894
|
dev_arrays[base_id] = arr_2d
|
|
916
895
|
dev_specs.append((base_id, col, canonical, BaseType.UINT16, size, y_scale, y_units))
|
|
917
896
|
instroke_downsampled_arrays[col] = base_id
|
|
918
897
|
|
|
919
898
|
if instroke_export in ('downsampled', 'full') and instroke_downsampled_arrays and use_dev:
|
|
920
899
|
fit_curve_cols = list(instroke_downsampled_arrays)
|
|
921
|
-
nmax = 0
|
|
922
|
-
for col in fit_curve_cols:
|
|
923
|
-
try:
|
|
924
|
-
_, np_ = _get_instroke_curve_for_export(
|
|
925
|
-
df, col, instroke_export, instroke_downsample_points
|
|
926
|
-
)
|
|
927
|
-
nmax = max(nmax, np_)
|
|
928
|
-
except (ValueError, KeyError, TypeError):
|
|
929
|
-
pass
|
|
930
900
|
axis_tuples = None
|
|
931
|
-
if
|
|
901
|
+
if instroke_row_points is not None and instroke_row_points.max() >= 2:
|
|
932
902
|
axis_abscissa = instroke_abscissa_type
|
|
933
903
|
if axis_abscissa is None:
|
|
934
904
|
canonicals = [col_map.get(c, c) for c in fit_curve_cols]
|
|
935
905
|
axis_abscissa = _default_instroke_abscissa_type(df, canonicals)
|
|
936
906
|
axis_tuples = _compute_instroke_axis_arrays(
|
|
937
|
-
df,
|
|
907
|
+
df, instroke_row_points, axis_abscissa, instroke_sample_interval_ms)
|
|
938
908
|
if axis_tuples is None:
|
|
939
909
|
# A curve without a declared X-axis is not conforming (§6.3): leave it
|
|
940
910
|
# out of the FIT file (it can still go in the companion JSON file).
|
|
@@ -1088,14 +1058,9 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
1088
1058
|
dev_id_msg.application_id = ROWINGDATA_APP_ID
|
|
1089
1059
|
dev_id_msg.developer_data_index = DEV_DATA_IDX
|
|
1090
1060
|
builder.add(dev_id_msg)
|
|
1091
|
-
if instroke_private_field_ids:
|
|
1092
|
-
instroke_id_msg = DeveloperDataIdMessage()
|
|
1093
|
-
instroke_id_msg.application_id = INSTROKE_APP_ID
|
|
1094
|
-
instroke_id_msg.developer_data_index = INSTROKE_DEV_DATA_IDX
|
|
1095
|
-
builder.add(instroke_id_msg)
|
|
1096
1061
|
for field_id, col, name, base_type, size, scale, units in dev_specs:
|
|
1097
1062
|
fd_msg = FieldDescriptionMessage()
|
|
1098
|
-
fd_msg.developer_data_index =
|
|
1063
|
+
fd_msg.developer_data_index = DEV_DATA_IDX
|
|
1099
1064
|
fd_msg.field_definition_number = field_id
|
|
1100
1065
|
fd_msg.fit_base_type_id = base_type.value
|
|
1101
1066
|
fd_msg.field_name = name
|
|
@@ -1158,15 +1123,17 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
1158
1123
|
is_array_field = (base_type == BaseType.UINT16 and size > 2)
|
|
1159
1124
|
if is_array_field and arr.ndim == 2:
|
|
1160
1125
|
row = arr[i]
|
|
1126
|
+
if field_id == HANDLE_FORCE_CURVE_FIELD_ID and instroke_row_points is not None:
|
|
1127
|
+
row = row[:int(instroke_row_points[i])] # no padding
|
|
1161
1128
|
vals = np.nan_to_num(row, nan=0.0, posinf=0.0, neginf=0.0)
|
|
1162
1129
|
max_phys = UINT16_MAX_VALID / max(scale, 1)
|
|
1163
1130
|
vals = np.clip(vals, 0, max_phys)
|
|
1164
1131
|
has_data = np.any(vals != 0)
|
|
1165
1132
|
if has_data:
|
|
1166
1133
|
dev = DeveloperField(
|
|
1167
|
-
developer_data_index=
|
|
1134
|
+
developer_data_index=DEV_DATA_IDX,
|
|
1168
1135
|
field_id=field_id,
|
|
1169
|
-
size=
|
|
1136
|
+
size=len(vals) * 2,
|
|
1170
1137
|
name=name,
|
|
1171
1138
|
base_type=base_type,
|
|
1172
1139
|
scale=scale,
|
|
@@ -1182,7 +1149,7 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
1182
1149
|
val = int(np.clip(round(val), 0, UINT8_MAX_VALID))
|
|
1183
1150
|
if val != 0 or field_id in ALWAYS_EMIT_DEV_FIELD_IDS:
|
|
1184
1151
|
dev = DeveloperField(
|
|
1185
|
-
developer_data_index=
|
|
1152
|
+
developer_data_index=DEV_DATA_IDX,
|
|
1186
1153
|
field_id=field_id,
|
|
1187
1154
|
size=size,
|
|
1188
1155
|
name=name,
|
|
@@ -1204,8 +1171,8 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
1204
1171
|
rec.enhanced_speed = float(enhanced_speed[i]) if enhanced_speed[i] > 0 else None
|
|
1205
1172
|
if hasattr(rec, 'total_cycles'):
|
|
1206
1173
|
rec.total_cycles = int(stroke_number[i])
|
|
1207
|
-
if stroke_distance is not None and
|
|
1208
|
-
rec
|
|
1174
|
+
if stroke_distance is not None and stroke_distance[i] > 0:
|
|
1175
|
+
_set_cycle_length16(rec, float(stroke_distance[i]))
|
|
1209
1176
|
if not (np.isnan(lat[i]) or lat[i] == 0) and not (np.isnan(lon[i]) or lon[i] == 0):
|
|
1210
1177
|
rec.position_lat = float(lat[i])
|
|
1211
1178
|
rec.position_long = float(lon[i])
|
|
@@ -1333,7 +1300,7 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
1333
1300
|
if instroke_export == 'off' and detected_instroke_cols:
|
|
1334
1301
|
result = {
|
|
1335
1302
|
'instroke_columns_available': detected_instroke_cols,
|
|
1336
|
-
'suggestion': 'Re-export with instroke_export="
|
|
1303
|
+
'suggestion': 'Re-export with instroke_export="downsampled", "full", or "companion" to include curve data.'
|
|
1337
1304
|
}
|
|
1338
1305
|
if companion_written_path is not None:
|
|
1339
1306
|
if result is None:
|
|
@@ -78,9 +78,9 @@ def load_fit_spec_raw():
|
|
|
78
78
|
|
|
79
79
|
def _validate_spec(raw):
|
|
80
80
|
version = raw.get('version', 0)
|
|
81
|
-
if version not in (1, 2, 3, 4, 5):
|
|
81
|
+
if version not in (1, 2, 3, 4, 5, 6):
|
|
82
82
|
warnings.warn(
|
|
83
|
-
'fit_export_spec.json version %s may be unsupported (expected 1
|
|
83
|
+
'fit_export_spec.json version %s may be unsupported (expected 1 to 6)' % version,
|
|
84
84
|
UserWarning,
|
|
85
85
|
stacklevel=2,
|
|
86
86
|
)
|
|
@@ -36,12 +36,12 @@ def strip_non_ascii(string):
|
|
|
36
36
|
return ''.join(stripped)
|
|
37
37
|
|
|
38
38
|
def _standard_app_ids():
|
|
39
|
-
"""
|
|
39
|
+
"""16-byte application ID of the Rowing Data Standard."""
|
|
40
40
|
try:
|
|
41
|
-
from .fitwrite import ROWINGDATA_APP_ID
|
|
41
|
+
from .fitwrite import ROWINGDATA_APP_ID
|
|
42
42
|
except (ValueError, ImportError): # pragma: no cover
|
|
43
|
-
from fitwrite import ROWINGDATA_APP_ID
|
|
44
|
-
return ROWINGDATA_APP_ID
|
|
43
|
+
from fitwrite import ROWINGDATA_APP_ID
|
|
44
|
+
return ROWINGDATA_APP_ID
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
# FIT invalid ("no data") value per base type (standard §6.5): read as missing.
|
|
@@ -807,6 +807,13 @@ class FITParser(object):
|
|
|
807
807
|
'seatcurve': 'seat curve',
|
|
808
808
|
}
|
|
809
809
|
|
|
810
|
+
# fitparse's profile lacks Record field 87 (cycle_length16, UINT16, scale 100, m)
|
|
811
|
+
# and returns it raw as ``unknown_87``.
|
|
812
|
+
if 'unknown_87' in self.df.columns and 'cycle_length16' not in self.df.columns:
|
|
813
|
+
self.df['cycle_length16'] = pd.to_numeric(
|
|
814
|
+
self.df['unknown_87'], errors='coerce').mask(lambda v: v == 65535) / 100.0
|
|
815
|
+
self.df.drop(columns=['unknown_87'], inplace=True)
|
|
816
|
+
|
|
810
817
|
self.df.rename(columns=newcolnames,inplace=True)
|
|
811
818
|
self._map_standard_developer_fields()
|
|
812
819
|
self._apply_lap_intensity()
|
|
@@ -821,7 +828,7 @@ class FITParser(object):
|
|
|
821
828
|
|
|
822
829
|
Files written before protocol version 1 do not carry it (standard §1.5).
|
|
823
830
|
"""
|
|
824
|
-
standard_id
|
|
831
|
+
standard_id = _standard_app_ids()
|
|
825
832
|
try:
|
|
826
833
|
for msg in self.fitfile.get_messages('developer_data_id'):
|
|
827
834
|
if _app_id_bytes(msg.get_value('application_id')) == standard_id:
|
|
@@ -855,7 +862,7 @@ class FITParser(object):
|
|
|
855
862
|
application ID and metre-scaled DriveLength; those are reported
|
|
856
863
|
separately so their older scaling can be honoured.
|
|
857
864
|
"""
|
|
858
|
-
standard_id
|
|
865
|
+
standard_id = _standard_app_ids()
|
|
859
866
|
index_to_app = {}
|
|
860
867
|
try:
|
|
861
868
|
for msg in self.fitfile.get_messages('developer_data_id'):
|
|
@@ -6,7 +6,7 @@ from __future__ import print_function
|
|
|
6
6
|
from six.moves import range
|
|
7
7
|
from six.moves import input
|
|
8
8
|
|
|
9
|
-
__version__ = "3.8.
|
|
9
|
+
__version__ = "3.8.7"
|
|
10
10
|
|
|
11
11
|
from collections import Counter
|
|
12
12
|
|
|
@@ -3154,7 +3154,6 @@ class rowingdata:
|
|
|
3154
3154
|
``docs/FIT_EXPORT.md``).
|
|
3155
3155
|
instroke_export : str
|
|
3156
3156
|
'off' (default): no in-stroke curve export.
|
|
3157
|
-
'summary': export q1,q2,q3,q4,diff,maxpos,minpos per curve as developer fields.
|
|
3158
3157
|
'downsampled': export fixed-length downsampled curve (UINT16 array) per stroke.
|
|
3159
3158
|
'full': export full-resolution curve up to 127 points per stroke (FIT size limit).
|
|
3160
3159
|
'companion': write curve data to .instroke.json sidecar file.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: rowingdata
|
|
3
|
-
Version: 3.8.
|
|
3
|
+
Version: 3.8.7
|
|
4
4
|
Summary: The rowingdata library to create colorful plots from CrewNerd, Painsled and other rowing data tools
|
|
5
5
|
Home-page: https://github.com/sanderroosendaal/rowingdata
|
|
6
6
|
Author: Sander Roosendaal
|