rowingdata 3.8.2__tar.gz → 3.8.4__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.2/rowingdata.egg-info → rowingdata-3.8.4}/PKG-INFO +23 -21
- {rowingdata-3.8.2 → rowingdata-3.8.4}/README.rst +22 -20
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/data/fit_export_spec.json +10 -10
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/fitwrite.py +88 -60
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/fitwrite_spec.py +2 -2
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/otherparsers.py +24 -3
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/rowingdata.py +1 -1
- {rowingdata-3.8.2 → rowingdata-3.8.4/rowingdata.egg-info}/PKG-INFO +23 -21
- {rowingdata-3.8.2 → rowingdata-3.8.4}/tests/test_fit_instroke_export.py +1 -1
- {rowingdata-3.8.2 → rowingdata-3.8.4}/tests/test_fit_standard.py +142 -30
- {rowingdata-3.8.2 → rowingdata-3.8.4}/tests/test_rowingdata.py +2 -2
- {rowingdata-3.8.2 → rowingdata-3.8.4}/LICENSE +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/MANIFEST.in +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/bin/crewnerddata.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/bin/crewnerddata.tcx +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/bin/testdata.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/.buildinfo +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_images/2x20min.png +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_images/editrower.JPG +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_images/greghoc.png +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_images/image001.png +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_images/otwlogbook.JPG +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_images/otwscreenshot.JPG +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_images/screenshot.JPG +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_images/screenshotlogbook.JPG +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_images/woensdag.png +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_sources/index.txt +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_sources/modules.txt +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_sources/rowingdata.txt +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_static/ajax-loader.gif +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_static/alabaster.css +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_static/basic.css +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_static/comment-bright.png +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_static/comment-close.png +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_static/comment.png +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_static/custom.css +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_static/doctools.js +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_static/down-pressed.png +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_static/down.png +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_static/file.png +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_static/jquery-1.11.1.js +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_static/jquery.js +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_static/minus.png +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_static/plus.png +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_static/pygments.css +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_static/searchtools.js +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_static/underscore-1.3.1.js +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_static/underscore.js +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_static/up-pressed.png +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_static/up.png +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/_static/websupport.js +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/genindex.html +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/index.html +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/modules.html +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/objects.inv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/py-modindex.html +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/rowingdata.html +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/search.html +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/docs/_build/html/searchindex.js +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/__init__.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/__main__.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/boatedit.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/checkdatafiles.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/copystats.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/crewnerdplot.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/crewnerdplottime.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/csvparsers.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/ergdataplot.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/ergdataplottime.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/ergdatatotcx.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/ergstickplot.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/ergstickplottime.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/ergsticktotcx.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/fit_garmin_bridge.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/fit_transcode.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/gpxtools.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/gpxwrite.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/konkatenaadje.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/laptesting.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/obsolete.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/painsled_desktop_plot.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/painsled_desktop_plottime.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/painsled_desktop_toc2.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/painsledplot.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/painsledplottime.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/painsledtoc2.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/roweredit.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/rowproplot.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/rowproplottime.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/speedcoachplot.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/speedcoachplottime.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/speedcoachtoc2.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/tcxplot.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/tcxplot_nogeo.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/tcxplottime.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/tcxplottime_nogeo.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/tcxtoc2.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/tcxtools.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/trainingparser.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/utils.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/windcorrected.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata/writetcx.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata.egg-info/SOURCES.txt +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata.egg-info/dependency_links.txt +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata.egg-info/not-zip-safe +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata.egg-info/requires.txt +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/rowingdata.egg-info/top_level.txt +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/setup.cfg +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/setup.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/2016-03-25-0758.CSV +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/2016-03-25-0758_data.CSV +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/2x20min_o.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/2x2km.tcx +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/3km_cd_o.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/3x250m.tcx +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/EUBoatCoach.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/EmpowerSpeedCoachForce.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/NKEmporfromgreg.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/NKLiNKv130.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/NoHR.tcx +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/PainsledForce.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/RP_interval.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/RP_interval.csv_o.CSV +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/RP_testdata.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/SpdCoach2_imp_inconsistent.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/SpdCoachAmbiguous.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/SpeedCoach GPS Workout.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/SpeedCoach2Link_interval.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/SpeedCoach2Linkv1.27.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/SpeedCoach2v2.12.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/Speedcoach2example.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/aritmo.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/bc1.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/bc2.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/bc3.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/boatcoach.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/boatcoach_fixed_distance.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/boatcoach_otw.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/correctedpainsled.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/cottwich.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/coxmate.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/crewnerd_interval.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/crewnerddata.CSV +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/crewnerddata.tcx +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/crewnerddata_o.CSV +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/cumvalues.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/ergdata_example.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/ergdata_example.csv_o.CSV +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/ergstick.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/ergstick.csv_o.CSV +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/ergstick2.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/ergstick_o.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/example.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/example_data.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/faketcx.tcx +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/float.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/herodata.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/humon.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/impeller_empower.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/invalidchar.tcx +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/kinomap.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/mystery.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/nk_logbook.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/painsled.tcx +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/painsled_desktop_example.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/painsled_out_data.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/painsled_to_csv_20160221-105218_erg-400150318_760465m.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/quiske_per_stroke_left.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/quiske_per_stroke_new.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/quiske_per_stroke_right.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/quiske_per_stroke_seat.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/recover.tcx +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/ritmointervals.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/rowingdata_eth.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/rowinginmotionexample.TCX +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/rowinginmotionexample.TCX_o.CSV +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/rowperfect.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/rowpro5.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/rowpro_carrick.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/rp3_curve.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/rp3intervals.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/rp3intervals2.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/rp_out.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/smartrow.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/smartrow_intervals.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/spdcoach2noheader.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/speedcoach2test2.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/speedcoach3test3.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/speedcoachexample.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/speedcoachexample.csv_o.CSV +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/strava_export.tcx +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/summarytest.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/testdata.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/testdata_part1.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/testdata_part2.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/testdatasummary.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/testlapidx.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/testtcs_210614.tcx +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/testtcx.tcx +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/testtcx_210614.tcx +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata/tim.csv +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/testdata//345/210/222/350/210/271.csv" +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/tests/test_fit_transcode.py +0 -0
- {rowingdata-3.8.2 → rowingdata-3.8.4}/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.4
|
|
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
|
|
@@ -555,7 +555,7 @@ The available data fields are
|
|
|
555
555
|
* 'cum_dist'
|
|
556
556
|
|
|
557
557
|
Oarlock parsers (NK Logbook) may add: ``catch``, ``finish``,
|
|
558
|
-
``slip``, ``wash``, ``peakforceangle``, ``
|
|
558
|
+
``slip``, ``wash``, ``peakforceangle``, ``effectiveArc``.
|
|
559
559
|
|
|
560
560
|
If imported from TCX, Rowpro, or other tools, some data fields may not contain
|
|
561
561
|
useful information.
|
|
@@ -567,7 +567,7 @@ rowingdata CSV Columns
|
|
|
567
567
|
This section describes the dataframe schema used by the ``rowingdata`` class.
|
|
568
568
|
It is this package's own column layout, not a vendor-neutral standard. For a
|
|
569
569
|
cross-vendor interchange format, see the Rowing Data Standard at
|
|
570
|
-
https://github.com/
|
|
570
|
+
https://github.com/Rowing-Industry-Trade-Association/rowing-data-standard, which rowingdata
|
|
571
571
|
targets when exporting FIT.
|
|
572
572
|
|
|
573
573
|
Any parser implementation feeding the ``rowingdata`` class should produce at
|
|
@@ -600,12 +600,12 @@ The standard field names are:
|
|
|
600
600
|
* ' ElapsedTime (sec)'
|
|
601
601
|
|
|
602
602
|
Optional (Oarlock/NK Logbook): ``catch``/``catchAngle``, ``finish``/``finishAngle``,
|
|
603
|
-
``slip``, ``wash``, ``peakforceangle``, ``
|
|
603
|
+
``slip``, ``wash``, ``peakforceangle``, ``effectiveArc``.
|
|
604
604
|
|
|
605
605
|
Planned for dual oarlock (port/starboard symmetry): ``catch_port``, ``catch_starboard``,
|
|
606
606
|
``finish_port``, ``finish_starboard``, ``slip_port``, ``slip_starboard``, ``wash_port``,
|
|
607
607
|
``wash_starboard``, ``peakforceangle_port``, ``peakforceangle_starboard``,
|
|
608
|
-
``
|
|
608
|
+
``effectiveArc_port``, ``effectiveArc_starboard``. See *Dual oarlock
|
|
609
609
|
(port/starboard)* below. **Note:** rowingdata does not yet implement parsing or
|
|
610
610
|
export for these per-side columns.
|
|
611
611
|
|
|
@@ -848,10 +848,9 @@ Oarlock scalars (OTW rigging)
|
|
|
848
848
|
-----------------------------
|
|
849
849
|
|
|
850
850
|
Field names: 'catch' / 'catchAngle', 'finish' / 'finishAngle', 'slip',
|
|
851
|
-
'wash', 'peakforceangle', '
|
|
851
|
+
'wash', 'peakforceangle', 'effectiveArc'
|
|
852
852
|
|
|
853
|
-
Units: degrees for angles
|
|
854
|
-
source: NK Logbook uses these columns).
|
|
853
|
+
Units: degrees for angles and for effectiveArc.
|
|
855
854
|
|
|
856
855
|
These fields come from NK Logbook (Oarlock) and similar OTW
|
|
857
856
|
measurement systems. They describe rigging geometry and blade angles:
|
|
@@ -864,12 +863,11 @@ measurement systems. They describe rigging geometry and blade angles:
|
|
|
864
863
|
* **slip** – blade slip angle.
|
|
865
864
|
* **wash** – wash/backwash angle.
|
|
866
865
|
* **peakforceangle** – oar angle at peak force (same 0° = perpendicular convention).
|
|
867
|
-
* **
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
they serve different purposes.
|
|
866
|
+
* **effectiveArc** – the part of the stroke arc that is effective: catch to
|
|
867
|
+
finish, less slip and wash (degrees). The Rowing Data Standard replaced the
|
|
868
|
+
earlier effective *length* (a lever length in mm) with this arc. Files written
|
|
869
|
+
against earlier drafts carry ``EffectiveLength``; it is read into the
|
|
870
|
+
``effectiveLength`` column (metres) and is not converted into an arc.
|
|
873
871
|
|
|
874
872
|
Dual oarlock (port/starboard)
|
|
875
873
|
..............................
|
|
@@ -973,12 +971,16 @@ Unreleased
|
|
|
973
971
|
----------
|
|
974
972
|
|
|
975
973
|
- **Breaking change to exported FIT file contents.** FIT export now follows the
|
|
976
|
-
Rowing Data Standard (https://github.com/
|
|
977
|
-
|
|
978
|
-
not: the developer application ID is now the standard UUID,
|
|
979
|
-
|
|
980
|
-
``AverageBoatSpeed`` uses scale
|
|
981
|
-
|
|
974
|
+
Rowing Data Standard (https://github.com/Rowing-Industry-Trade-Association/rowing-data-standard,
|
|
975
|
+
current ``main``). The ``exporttofit`` API is unchanged, but the bytes it
|
|
976
|
+
writes are not: the developer application ID is now the standard UUID,
|
|
977
|
+
``DriveLength`` is encoded in millimetres rather than metres,
|
|
978
|
+
``AverageBoatSpeed`` uses scale 100, ``EffectiveLength`` is replaced by
|
|
979
|
+
``EffectiveArc`` in degrees (IDs 16, 210, 211; the ``effectiveLength*``
|
|
980
|
+
columns are no longer exported, use ``effectiveArc*``), the force fields are
|
|
981
|
+
named ``AverageDriveForce`` and ``PeakDriveForce``, stroke rate is written as
|
|
982
|
+
native ``cadence256``, stroke work uses field ID 19, and no value is written
|
|
983
|
+
as the FIT invalid value (255 / 65535 / 32767): measurements clip one below it. Consumers that hardcoded the previous rowingdata
|
|
982
984
|
application ID or the old metre-based scales must be updated. ``FITParser``
|
|
983
985
|
still reads files written by rowingdata 3.7.3 and earlier.
|
|
984
986
|
- In-stroke curve fields are emitted under a separate, private application ID,
|
|
@@ -986,7 +988,7 @@ Unreleased
|
|
|
986
988
|
carry no interoperable meaning.
|
|
987
989
|
- Removed ``docs/FIT_STANDARD.md`` and ``docs/FIT_STANDARD.pdf``. The standard is
|
|
988
990
|
maintained by a committee at
|
|
989
|
-
https://github.com/
|
|
991
|
+
https://github.com/Rowing-Industry-Trade-Association/rowing-data-standard, which is the single
|
|
990
992
|
source of truth; this repository no longer ships a copy.
|
|
991
993
|
|
|
992
994
|
0.97.x
|
|
@@ -521,7 +521,7 @@ The available data fields are
|
|
|
521
521
|
* 'cum_dist'
|
|
522
522
|
|
|
523
523
|
Oarlock parsers (NK Logbook) may add: ``catch``, ``finish``,
|
|
524
|
-
``slip``, ``wash``, ``peakforceangle``, ``
|
|
524
|
+
``slip``, ``wash``, ``peakforceangle``, ``effectiveArc``.
|
|
525
525
|
|
|
526
526
|
If imported from TCX, Rowpro, or other tools, some data fields may not contain
|
|
527
527
|
useful information.
|
|
@@ -533,7 +533,7 @@ rowingdata CSV Columns
|
|
|
533
533
|
This section describes the dataframe schema used by the ``rowingdata`` class.
|
|
534
534
|
It is this package's own column layout, not a vendor-neutral standard. For a
|
|
535
535
|
cross-vendor interchange format, see the Rowing Data Standard at
|
|
536
|
-
https://github.com/
|
|
536
|
+
https://github.com/Rowing-Industry-Trade-Association/rowing-data-standard, which rowingdata
|
|
537
537
|
targets when exporting FIT.
|
|
538
538
|
|
|
539
539
|
Any parser implementation feeding the ``rowingdata`` class should produce at
|
|
@@ -566,12 +566,12 @@ The standard field names are:
|
|
|
566
566
|
* ' ElapsedTime (sec)'
|
|
567
567
|
|
|
568
568
|
Optional (Oarlock/NK Logbook): ``catch``/``catchAngle``, ``finish``/``finishAngle``,
|
|
569
|
-
``slip``, ``wash``, ``peakforceangle``, ``
|
|
569
|
+
``slip``, ``wash``, ``peakforceangle``, ``effectiveArc``.
|
|
570
570
|
|
|
571
571
|
Planned for dual oarlock (port/starboard symmetry): ``catch_port``, ``catch_starboard``,
|
|
572
572
|
``finish_port``, ``finish_starboard``, ``slip_port``, ``slip_starboard``, ``wash_port``,
|
|
573
573
|
``wash_starboard``, ``peakforceangle_port``, ``peakforceangle_starboard``,
|
|
574
|
-
``
|
|
574
|
+
``effectiveArc_port``, ``effectiveArc_starboard``. See *Dual oarlock
|
|
575
575
|
(port/starboard)* below. **Note:** rowingdata does not yet implement parsing or
|
|
576
576
|
export for these per-side columns.
|
|
577
577
|
|
|
@@ -814,10 +814,9 @@ Oarlock scalars (OTW rigging)
|
|
|
814
814
|
-----------------------------
|
|
815
815
|
|
|
816
816
|
Field names: 'catch' / 'catchAngle', 'finish' / 'finishAngle', 'slip',
|
|
817
|
-
'wash', 'peakforceangle', '
|
|
817
|
+
'wash', 'peakforceangle', 'effectiveArc'
|
|
818
818
|
|
|
819
|
-
Units: degrees for angles
|
|
820
|
-
source: NK Logbook uses these columns).
|
|
819
|
+
Units: degrees for angles and for effectiveArc.
|
|
821
820
|
|
|
822
821
|
These fields come from NK Logbook (Oarlock) and similar OTW
|
|
823
822
|
measurement systems. They describe rigging geometry and blade angles:
|
|
@@ -830,12 +829,11 @@ measurement systems. They describe rigging geometry and blade angles:
|
|
|
830
829
|
* **slip** – blade slip angle.
|
|
831
830
|
* **wash** – wash/backwash angle.
|
|
832
831
|
* **peakforceangle** – oar angle at peak force (same 0° = perpendicular convention).
|
|
833
|
-
* **
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
they serve different purposes.
|
|
832
|
+
* **effectiveArc** – the part of the stroke arc that is effective: catch to
|
|
833
|
+
finish, less slip and wash (degrees). The Rowing Data Standard replaced the
|
|
834
|
+
earlier effective *length* (a lever length in mm) with this arc. Files written
|
|
835
|
+
against earlier drafts carry ``EffectiveLength``; it is read into the
|
|
836
|
+
``effectiveLength`` column (metres) and is not converted into an arc.
|
|
839
837
|
|
|
840
838
|
Dual oarlock (port/starboard)
|
|
841
839
|
..............................
|
|
@@ -939,12 +937,16 @@ Unreleased
|
|
|
939
937
|
----------
|
|
940
938
|
|
|
941
939
|
- **Breaking change to exported FIT file contents.** FIT export now follows the
|
|
942
|
-
Rowing Data Standard (https://github.com/
|
|
943
|
-
|
|
944
|
-
not: the developer application ID is now the standard UUID,
|
|
945
|
-
|
|
946
|
-
``AverageBoatSpeed`` uses scale
|
|
947
|
-
|
|
940
|
+
Rowing Data Standard (https://github.com/Rowing-Industry-Trade-Association/rowing-data-standard,
|
|
941
|
+
current ``main``). The ``exporttofit`` API is unchanged, but the bytes it
|
|
942
|
+
writes are not: the developer application ID is now the standard UUID,
|
|
943
|
+
``DriveLength`` is encoded in millimetres rather than metres,
|
|
944
|
+
``AverageBoatSpeed`` uses scale 100, ``EffectiveLength`` is replaced by
|
|
945
|
+
``EffectiveArc`` in degrees (IDs 16, 210, 211; the ``effectiveLength*``
|
|
946
|
+
columns are no longer exported, use ``effectiveArc*``), the force fields are
|
|
947
|
+
named ``AverageDriveForce`` and ``PeakDriveForce``, stroke rate is written as
|
|
948
|
+
native ``cadence256``, stroke work uses field ID 19, and no value is written
|
|
949
|
+
as the FIT invalid value (255 / 65535 / 32767): measurements clip one below it. Consumers that hardcoded the previous rowingdata
|
|
948
950
|
application ID or the old metre-based scales must be updated. ``FITParser``
|
|
949
951
|
still reads files written by rowingdata 3.7.3 and earlier.
|
|
950
952
|
- In-stroke curve fields are emitted under a separate, private application ID,
|
|
@@ -952,7 +954,7 @@ Unreleased
|
|
|
952
954
|
carry no interoperable meaning.
|
|
953
955
|
- Removed ``docs/FIT_STANDARD.md`` and ``docs/FIT_STANDARD.pdf``. The standard is
|
|
954
956
|
maintained by a committee at
|
|
955
|
-
https://github.com/
|
|
957
|
+
https://github.com/Rowing-Industry-Trade-Association/rowing-data-standard, which is the single
|
|
956
958
|
source of truth; this repository no longer ships a copy.
|
|
957
959
|
|
|
958
960
|
0.97.x
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version":
|
|
2
|
+
"version": 5,
|
|
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/
|
|
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).",
|
|
6
6
|
"instroke_dynamic": {
|
|
7
7
|
"summary_start": 20,
|
|
8
8
|
"summary_id_padding": "ceil_to_10",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"NORMALIZED_DRIVE_0_1": 4
|
|
39
39
|
},
|
|
40
40
|
"instroke_axis_field_ids": [90, 91, 92],
|
|
41
|
-
"always_emit_field_ids": [
|
|
41
|
+
"always_emit_field_ids": [],
|
|
42
42
|
"instroke_column_map": {
|
|
43
43
|
"curve_data": "HandleForceCurve",
|
|
44
44
|
"boat accelerator curve": "BoatAcceleratorCurve",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
{"field_id": 3, "group": "rowing", "fit_name": "StrokeRecoveryTime", "base_type": "UINT16", "size": 2, "scale": 1, "units": "ms", "df_columns": [" StrokeRecoveryTime (ms)"]},
|
|
53
53
|
{"field_id": 4, "group": "legacy", "fit_name": "AverageDriveForceLbs", "base_type": "UINT16", "size": 2, "scale": 10, "units": "lbs", "df_columns": [" AverageDriveForce (lbs)"]},
|
|
54
54
|
{"field_id": 5, "group": "legacy", "fit_name": "PeakDriveForceLbs", "base_type": "UINT16", "size": 2, "scale": 10, "units": "lbs", "df_columns": [" PeakDriveForce (lbs)"]},
|
|
55
|
-
{"field_id": 6, "group": "rowing", "fit_name": "
|
|
56
|
-
{"field_id": 7, "group": "rowing", "fit_name": "
|
|
57
|
-
{"field_id": 8, "group": "rowing", "fit_name": "AverageBoatSpeed", "base_type": "UINT16", "size": 2, "scale":
|
|
58
|
-
{"field_id": 9, "group": "
|
|
55
|
+
{"field_id": 6, "group": "rowing", "fit_name": "AverageDriveForce", "base_type": "UINT16", "size": 2, "scale": 10, "units": "N", "df_columns": [" AverageDriveForce (N)"]},
|
|
56
|
+
{"field_id": 7, "group": "rowing", "fit_name": "PeakDriveForce", "base_type": "UINT16", "size": 2, "scale": 10, "units": "N", "df_columns": [" PeakDriveForce (N)"]},
|
|
57
|
+
{"field_id": 8, "group": "rowing", "fit_name": "AverageBoatSpeed", "base_type": "UINT16", "size": 2, "scale": 100, "units": "m/s", "df_columns": [" AverageBoatSpeed (m/s)"]},
|
|
58
|
+
{"field_id": 9, "group": "legacy", "fit_name": "WorkoutState", "base_type": "UINT8", "size": 1, "scale": 1, "units": "", "df_columns": [" WorkoutState"]},
|
|
59
59
|
{"field_id": 10, "group": "metadata", "fit_name": "RecordingStrategy", "base_type": "UINT8", "size": 1, "scale": 1, "units": "", "df_columns": [], "message_type": "session"},
|
|
60
60
|
{"field_id": 94, "group": "metadata", "fit_name": "SlipThreshold", "base_type": "UINT16", "size": 2, "scale": 1, "units": "N", "df_columns": [], "message_type": "session"},
|
|
61
61
|
{"field_id": 95, "group": "metadata", "fit_name": "WashThreshold", "base_type": "UINT16", "size": 2, "scale": 1, "units": "N", "df_columns": [], "message_type": "session"},
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
{"field_id": 13, "group": "oarlock", "fit_name": "Slip", "base_type": "SINT16", "size": 2, "scale": 10, "units": "deg", "df_columns": ["slip", " slip"]},
|
|
69
69
|
{"field_id": 14, "group": "oarlock", "fit_name": "Wash", "base_type": "SINT16", "size": 2, "scale": 10, "units": "deg", "df_columns": ["wash", " wash"]},
|
|
70
70
|
{"field_id": 15, "group": "oarlock", "fit_name": "PeakForceAngle", "base_type": "SINT16", "size": 2, "scale": 10, "units": "deg", "df_columns": ["peakforceangle", " peakforceangle"]},
|
|
71
|
-
{"field_id": 16, "group": "oarlock", "fit_name": "
|
|
71
|
+
{"field_id": 16, "group": "oarlock", "fit_name": "EffectiveArc", "base_type": "UINT16", "size": 2, "scale": 10, "units": "deg", "df_columns": ["effectiveArc", " effectiveArc", "effective arc"]},
|
|
72
72
|
|
|
73
73
|
{"field_id": 200, "group": "oarlock_dual", "dual_pair": "catch", "side": "port", "fit_name": "CatchPort", "base_type": "SINT16", "size": 2, "scale": 10, "units": "deg", "df_columns": ["catch_port", "catchAngle_port"]},
|
|
74
74
|
{"field_id": 201, "group": "oarlock_dual", "dual_pair": "catch", "side": "starboard", "fit_name": "CatchStarboard", "base_type": "SINT16", "size": 2, "scale": 10, "units": "deg", "df_columns": ["catch_starboard", "catchAngle_starboard"]},
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
{"field_id": 207, "group": "oarlock_dual", "dual_pair": "wash", "side": "starboard", "fit_name": "WashStarboard", "base_type": "SINT16", "size": 2, "scale": 10, "units": "deg", "df_columns": ["wash_starboard"]},
|
|
81
81
|
{"field_id": 208, "group": "oarlock_dual", "dual_pair": "peakforceangle", "side": "port", "fit_name": "PeakForceAnglePort", "base_type": "SINT16", "size": 2, "scale": 10, "units": "deg", "df_columns": ["peakforceangle_port"]},
|
|
82
82
|
{"field_id": 209, "group": "oarlock_dual", "dual_pair": "peakforceangle", "side": "starboard", "fit_name": "PeakForceAngleStarboard", "base_type": "SINT16", "size": 2, "scale": 10, "units": "deg", "df_columns": ["peakforceangle_starboard"]},
|
|
83
|
-
{"field_id": 210, "group": "oarlock_dual", "dual_pair": "
|
|
84
|
-
{"field_id": 211, "group": "oarlock_dual", "dual_pair": "
|
|
83
|
+
{"field_id": 210, "group": "oarlock_dual", "dual_pair": "effectiveArc", "side": "port", "fit_name": "EffectiveArcPort", "base_type": "UINT16", "size": 2, "scale": 10, "units": "deg", "df_columns": ["effectiveArc_port"]},
|
|
84
|
+
{"field_id": 211, "group": "oarlock_dual", "dual_pair": "effectiveArc", "side": "starboard", "fit_name": "EffectiveArcStarboard", "base_type": "UINT16", "size": 2, "scale": 10, "units": "deg", "df_columns": ["effectiveArc_starboard"]},
|
|
85
85
|
|
|
86
86
|
{"field_id": 17, "group": "peak_position", "fit_name": "PeakForcePositionNorm", "base_type": "UINT16", "size": 2, "scale": 1, "units": "", "df_columns": ["rel_peak_force_pos", "PeakForcePositionNorm", "% of Stroke Complete When Peak Force Is Reached"], "transformer": "peak_norm", "clip_uint16_max": 10000},
|
|
87
87
|
{"field_id": 18, "group": "peak_position", "fit_name": "PeakForcePositionAbs", "base_type": "UINT16", "size": 2, "scale": 1, "units": "mm", "df_columns": ["peak_force_pos", "PeakForcePositionAbs"], "transformer": "peak_abs"},
|
|
@@ -10,6 +10,7 @@ import datetime
|
|
|
10
10
|
import json
|
|
11
11
|
import os
|
|
12
12
|
import uuid
|
|
13
|
+
import warnings
|
|
13
14
|
import numpy as np
|
|
14
15
|
import pandas as pd
|
|
15
16
|
from dateutil import parser as ps
|
|
@@ -69,8 +70,10 @@ WASH_THRESHOLD_FIELD_ID = 95
|
|
|
69
70
|
STROKE_STATE_FIELD_ID = 96
|
|
70
71
|
HANDLE_FORCE_CURVE_FIELD_ID = int(_FIT_EXPORT_RAW.get('handle_force_curve_field_id', 60))
|
|
71
72
|
HANDLE_FORCE_CURVE_NAME = 'HandleForceCurve'
|
|
73
|
+
INSTROKE_AXIS_FIELD_IDS = frozenset((90, 91, 92))
|
|
72
74
|
|
|
73
|
-
#
|
|
75
|
+
# Values of the native FIT ``intensity`` enum, set on every Lap (standard §4.1).
|
|
76
|
+
# (Record field 9, WorkoutState, was removed from the standard; it is never written.)
|
|
74
77
|
INTENSITY_ACTIVE = 0
|
|
75
78
|
INTENSITY_REST = 1
|
|
76
79
|
INTENSITY_WARMUP = 2
|
|
@@ -79,6 +82,12 @@ INTENSITY_RECOVERY = 4
|
|
|
79
82
|
INTENSITY_INTERVAL = 5
|
|
80
83
|
INTENSITY_OTHER = 6
|
|
81
84
|
|
|
85
|
+
# Largest value that is not the FIT invalid value of the base type (standard §6.5):
|
|
86
|
+
# 255 / 65535 / 32767 mean "no data" and are never written as a measurement.
|
|
87
|
+
UINT8_MAX_VALID = 254
|
|
88
|
+
UINT16_MAX_VALID = 65534
|
|
89
|
+
SINT16_MAX_VALID = 32766
|
|
90
|
+
|
|
82
91
|
# Developer fields that must be emitted even when value is 0 (semantic zero / unknown).
|
|
83
92
|
ALWAYS_EMIT_DEV_FIELD_IDS = frozenset(_FIT_EXPORT_RAW['always_emit_field_ids'])
|
|
84
93
|
|
|
@@ -248,7 +257,7 @@ def _series_to_peak_force_position_abs_m(values):
|
|
|
248
257
|
"""Map peak_force_pos (often RP3 cm) to millimeters for PeakForcePositionAbs (scale 1, units mm)."""
|
|
249
258
|
v = pd.to_numeric(values, errors='coerce').values
|
|
250
259
|
out = np.zeros(len(v), dtype=np.float64)
|
|
251
|
-
max_mm =
|
|
260
|
+
max_mm = float(UINT16_MAX_VALID)
|
|
252
261
|
for i, x in enumerate(v):
|
|
253
262
|
if not np.isfinite(x) or x <= 0:
|
|
254
263
|
continue
|
|
@@ -260,26 +269,18 @@ def _series_to_peak_force_position_abs_m(values):
|
|
|
260
269
|
return out
|
|
261
270
|
|
|
262
271
|
|
|
263
|
-
def _length_values_to_mm(arr):
|
|
264
|
-
"""Convert oarlock effective-length column values to millimeters."""
|
|
265
|
-
arr = np.asarray(arr, dtype=np.float64)
|
|
266
|
-
if np.nanmax(arr) <= 5.0:
|
|
267
|
-
return arr * 1000.0
|
|
268
|
-
return arr * 10.0
|
|
269
|
-
|
|
270
|
-
|
|
271
272
|
def _values_for_fit_field(arr, units, scale, base_type):
|
|
272
273
|
"""Map physical DataFrame values to FIT developer-field magnitudes before clipping."""
|
|
273
274
|
arr = np.nan_to_num(arr, nan=0.0, posinf=0.0, neginf=0.0)
|
|
274
275
|
if units == 'mm':
|
|
275
276
|
arr = arr * 1000.0
|
|
276
277
|
if base_type == BaseType.UINT8:
|
|
277
|
-
arr = np.clip(arr, 0,
|
|
278
|
+
arr = np.clip(arr, 0, UINT8_MAX_VALID)
|
|
278
279
|
elif base_type == BaseType.UINT16:
|
|
279
|
-
max_display =
|
|
280
|
+
max_display = UINT16_MAX_VALID / scale if scale else float(UINT16_MAX_VALID)
|
|
280
281
|
arr = np.clip(arr, 0, max_display)
|
|
281
282
|
elif base_type == BaseType.SINT16:
|
|
282
|
-
max_display =
|
|
283
|
+
max_display = SINT16_MAX_VALID / scale if scale else float(SINT16_MAX_VALID)
|
|
283
284
|
min_display = -32768.0 / scale if scale else -32768.0
|
|
284
285
|
arr = np.clip(arr, min_display, max_display)
|
|
285
286
|
return arr
|
|
@@ -301,7 +302,7 @@ def _split_cadence_arrays(df, nr_rows):
|
|
|
301
302
|
np.zeros(nr_rows, dtype=np.float64))
|
|
302
303
|
raw = np.where(raw > 0, raw, 0.0)
|
|
303
304
|
cadence_int = np.floor(raw + 0.5).astype(int)
|
|
304
|
-
cadence256 = np.clip(raw, 0.0,
|
|
305
|
+
cadence256 = np.clip(raw, 0.0, UINT16_MAX_VALID / 256.0)
|
|
305
306
|
return cadence_int, cadence256, raw
|
|
306
307
|
|
|
307
308
|
|
|
@@ -336,7 +337,9 @@ def _default_instroke_abscissa_type(df, curve_canonical_names):
|
|
|
336
337
|
def _compute_instroke_axis_arrays(df, n_points, instroke_abscissa_type, instroke_sample_interval_ms):
|
|
337
338
|
"""
|
|
338
339
|
Per-record arrays for InstrokeAbscissaType (90), InstrokeSampleInterval (91), InstrokePointCount (92).
|
|
339
|
-
Returns None if n_points < 2
|
|
340
|
+
Returns None if n_points < 2, if the abscissa type is UNKNOWN, or if the sample
|
|
341
|
+
interval cannot be determined: producers MUST NOT write type 0 (standard §6.3) and
|
|
342
|
+
must not write a placeholder interval (§7.2). The caller then leaves the curve out.
|
|
340
343
|
"""
|
|
341
344
|
nr = len(df)
|
|
342
345
|
if n_points < 2:
|
|
@@ -346,6 +349,8 @@ def _compute_instroke_axis_arrays(df, n_points, instroke_abscissa_type, instroke
|
|
|
346
349
|
else:
|
|
347
350
|
atype = (INSTROKE_ABSCISSA_TIME_UNIFORM_MS if ' DriveTime (ms)' in df.columns
|
|
348
351
|
else INSTROKE_ABSCISSA_UNKNOWN)
|
|
352
|
+
if atype == INSTROKE_ABSCISSA_UNKNOWN:
|
|
353
|
+
return None
|
|
349
354
|
if instroke_sample_interval_ms is not None:
|
|
350
355
|
if np.isscalar(instroke_sample_interval_ms):
|
|
351
356
|
interval = np.full(nr, float(instroke_sample_interval_ms))
|
|
@@ -358,13 +363,13 @@ def _compute_instroke_axis_arrays(df, n_points, instroke_abscissa_type, instroke
|
|
|
358
363
|
)
|
|
359
364
|
# Millimeters between uniform samples along handle travel
|
|
360
365
|
interval = np.round(drive_m * 1000.0 / np.maximum(n_points - 1, 1))
|
|
361
|
-
interval = np.clip(interval, 0,
|
|
366
|
+
interval = np.clip(interval, 0, UINT16_MAX_VALID)
|
|
362
367
|
elif atype == INSTROKE_ABSCISSA_TIME_UNIFORM_MS and ' DriveTime (ms)' in df.columns:
|
|
363
368
|
drive_ms = np.nan_to_num(df[' DriveTime (ms)'].values, nan=0.0, posinf=0.0, neginf=0.0)
|
|
364
369
|
interval = np.round(drive_ms / np.maximum(n_points - 1, 1))
|
|
365
|
-
interval = np.clip(interval, 0,
|
|
370
|
+
interval = np.clip(interval, 0, UINT16_MAX_VALID)
|
|
366
371
|
else:
|
|
367
|
-
|
|
372
|
+
return None # no way to derive the spacing: do not write a placeholder
|
|
368
373
|
pc = np.full(nr, float(min(int(n_points), 127)))
|
|
369
374
|
ta = np.full(nr, float(atype))
|
|
370
375
|
return ta, interval, pc
|
|
@@ -618,7 +623,7 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
618
623
|
Handle force in N above/below which the blade counts as entered/exited (Session
|
|
619
624
|
fields SlipThreshold 94 / WashThreshold 95, standard §5.4). Written when given
|
|
620
625
|
and use_developer_fields is True; the standard recommends writing them whenever
|
|
621
|
-
Slip, Wash or
|
|
626
|
+
Slip, Wash or EffectiveArc are written.
|
|
622
627
|
|
|
623
628
|
Returns
|
|
624
629
|
-------
|
|
@@ -704,13 +709,13 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
704
709
|
|
|
705
710
|
try:
|
|
706
711
|
heart_rate = df[' HRCur (bpm)'].values.astype(int)
|
|
707
|
-
heart_rate = np.clip(heart_rate, 0,
|
|
712
|
+
heart_rate = np.clip(heart_rate, 0, UINT8_MAX_VALID) # uint8
|
|
708
713
|
except KeyError:
|
|
709
714
|
heart_rate = np.zeros(nr_rows, dtype=int)
|
|
710
715
|
|
|
711
716
|
try:
|
|
712
717
|
power = df[' Power (watts)'].values.astype(int)
|
|
713
|
-
power = np.clip(power, 0,
|
|
718
|
+
power = np.clip(power, 0, UINT16_MAX_VALID) # uint16
|
|
714
719
|
except KeyError:
|
|
715
720
|
power = np.zeros(nr_rows, dtype=int)
|
|
716
721
|
|
|
@@ -786,8 +791,6 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
786
791
|
if col is not None:
|
|
787
792
|
arr = df[col].values
|
|
788
793
|
arr = _values_for_fit_field(arr, units, scale, base_type)
|
|
789
|
-
if field_id == 9:
|
|
790
|
-
arr = _workout_state_to_intensity(arr)
|
|
791
794
|
dev_arrays[field_id] = arr
|
|
792
795
|
dev_specs.append((field_id, col, name, base_type, size, scale, units))
|
|
793
796
|
for fd in OARLOCK_DEV_FIELDS:
|
|
@@ -795,21 +798,10 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
795
798
|
col = next((c for c in possible_cols if c in df.columns), None)
|
|
796
799
|
if col is not None:
|
|
797
800
|
arr = df[col].values
|
|
798
|
-
|
|
799
|
-
arr = _length_values_to_mm(arr)
|
|
800
|
-
arr = _values_for_fit_field(arr, '', scale, base_type)
|
|
801
|
-
elif base_type == BaseType.SINT16:
|
|
802
|
-
arr = _values_for_fit_field(arr, units, scale, base_type)
|
|
803
|
-
else:
|
|
804
|
-
arr = _values_for_fit_field(arr, units, scale, base_type)
|
|
801
|
+
arr = _values_for_fit_field(arr, units, scale, base_type)
|
|
805
802
|
dev_arrays[field_id] = arr
|
|
806
803
|
dev_specs.append((field_id, col, name, base_type, size, scale, units))
|
|
807
804
|
for _pair_key, port_fd, starboard_fd in OARLOCK_DUAL_PAIRS:
|
|
808
|
-
if _pair_key == 'effectiveLength':
|
|
809
|
-
# Draft defect: summary field 16 is mm while 210/211 are metres,
|
|
810
|
-
# and §5.3 calls 16 the average of the two. Unresolved upstream,
|
|
811
|
-
# so neither encoding is written.
|
|
812
|
-
continue
|
|
813
805
|
cols_p = port_fd[1]
|
|
814
806
|
cols_s = starboard_fd[1]
|
|
815
807
|
col_p = next((c for c in cols_p if c in df.columns), None)
|
|
@@ -819,13 +811,27 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
819
811
|
for fd, col in ((port_fd, col_p), (starboard_fd, col_s)):
|
|
820
812
|
field_id, possible_cols, name, base_type, size, scale, units = fd
|
|
821
813
|
arr = df[col].values
|
|
822
|
-
|
|
823
|
-
arr = _length_values_to_mm(arr)
|
|
824
|
-
arr = _values_for_fit_field(arr, '', scale, base_type)
|
|
825
|
-
else:
|
|
826
|
-
arr = _values_for_fit_field(arr, units, scale, base_type)
|
|
814
|
+
arr = _values_for_fit_field(arr, units, scale, base_type)
|
|
827
815
|
dev_arrays[field_id] = arr
|
|
828
816
|
dev_specs.append((field_id, col, name, base_type, size, scale, units))
|
|
817
|
+
# Standard §5.3: with per-side fields present, summary fields 11-16 SHOULD
|
|
818
|
+
# carry the port/starboard average. A side reading 0 counts as missing, so
|
|
819
|
+
# the other side's value is used (§5.3, "when only one side is available").
|
|
820
|
+
_summary_by_name = {fd[2]: fd for fd in OARLOCK_DEV_FIELDS}
|
|
821
|
+
for _pair_key, port_fd, starboard_fd in OARLOCK_DUAL_PAIRS:
|
|
822
|
+
summary_fd = _summary_by_name.get(port_fd[2][:-len('Port')])
|
|
823
|
+
if summary_fd is None or port_fd[0] not in dev_arrays or starboard_fd[0] not in dev_arrays:
|
|
824
|
+
continue
|
|
825
|
+
port_arr = np.asarray(dev_arrays[port_fd[0]], dtype=np.float64)
|
|
826
|
+
star_arr = np.asarray(dev_arrays[starboard_fd[0]], dtype=np.float64)
|
|
827
|
+
averaged = np.where(
|
|
828
|
+
port_arr == 0, star_arr,
|
|
829
|
+
np.where(star_arr == 0, port_arr, (port_arr + star_arr) / 2.0))
|
|
830
|
+
summary_id = summary_fd[0]
|
|
831
|
+
if summary_id not in dev_arrays:
|
|
832
|
+
dev_specs.append((summary_id, port_fd[1][0], summary_fd[2], summary_fd[3],
|
|
833
|
+
summary_fd[4], summary_fd[5], summary_fd[6]))
|
|
834
|
+
dev_arrays[summary_id] = averaged
|
|
829
835
|
for fd in PEAK_POSITION_DEV_FIELDS:
|
|
830
836
|
field_id, possible_cols, name, base_type, size, scale, units, transformer, clip_max = fd
|
|
831
837
|
col = next((c for c in possible_cols if c in df.columns), None)
|
|
@@ -839,7 +845,7 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
839
845
|
continue
|
|
840
846
|
arr = np.nan_to_num(arr, nan=0.0, posinf=0.0, neginf=0.0)
|
|
841
847
|
if base_type == BaseType.UINT16:
|
|
842
|
-
max_display =
|
|
848
|
+
max_display = UINT16_MAX_VALID / scale if scale else float(UINT16_MAX_VALID)
|
|
843
849
|
arr = np.clip(arr, 0, max_display)
|
|
844
850
|
if clip_max is not None:
|
|
845
851
|
arr = np.clip(arr, 0, float(clip_max))
|
|
@@ -875,9 +881,9 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
875
881
|
field_id = base_id
|
|
876
882
|
name = '%s_%s' % (canonical, metric)
|
|
877
883
|
arr = np.nan_to_num(arr, nan=0.0, posinf=0.0, neginf=0.0)
|
|
878
|
-
# UINT16: encoded = value * scale, must be <=
|
|
884
|
+
# UINT16: encoded = value * scale, must be <= 65534. Scale 1 => max display 65534
|
|
879
885
|
scale = 1
|
|
880
|
-
arr = np.clip(arr, 0,
|
|
886
|
+
arr = np.clip(arr, 0, UINT16_MAX_VALID / max(scale, 1))
|
|
881
887
|
dev_arrays[field_id] = arr
|
|
882
888
|
dev_specs.append((field_id, col, name, BaseType.UINT16, 2, scale, ''))
|
|
883
889
|
instroke_private_field_ids.add(field_id)
|
|
@@ -920,6 +926,7 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
920
926
|
nmax = max(nmax, np_)
|
|
921
927
|
except (ValueError, KeyError, TypeError):
|
|
922
928
|
pass
|
|
929
|
+
axis_tuples = None
|
|
923
930
|
if nmax >= 2:
|
|
924
931
|
axis_abscissa = instroke_abscissa_type
|
|
925
932
|
if axis_abscissa is None:
|
|
@@ -927,19 +934,33 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
927
934
|
axis_abscissa = _default_instroke_abscissa_type(df, canonicals)
|
|
928
935
|
axis_tuples = _compute_instroke_axis_arrays(
|
|
929
936
|
df, nmax, axis_abscissa, instroke_sample_interval_ms)
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
937
|
+
if axis_tuples is None:
|
|
938
|
+
# A curve without a declared X-axis is not conforming (§6.3): leave it
|
|
939
|
+
# out of the FIT file (it can still go in the companion JSON file).
|
|
940
|
+
warnings.warn(
|
|
941
|
+
'In-stroke force curve not written to the FIT file: the X-axis '
|
|
942
|
+
'(InstrokeAbscissaType / InstrokeSampleInterval) cannot be determined. '
|
|
943
|
+
'Pass instroke_abscissa_type and instroke_sample_interval_ms, or provide '
|
|
944
|
+
"' DriveTime (ms)' or ' DriveLength (meters)'.",
|
|
945
|
+
UserWarning, stacklevel=2)
|
|
946
|
+
for curve_id in instroke_downsampled_arrays.values():
|
|
947
|
+
dev_arrays.pop(curve_id, None)
|
|
948
|
+
curve_ids = set(instroke_downsampled_arrays.values())
|
|
949
|
+
dev_specs[:] = [d for d in dev_specs if d[0] not in curve_ids]
|
|
950
|
+
instroke_downsampled_arrays.clear()
|
|
951
|
+
else:
|
|
952
|
+
ta, interval, pc = axis_tuples
|
|
953
|
+
axis_arrays = [ta, interval, pc]
|
|
954
|
+
for axis_row, arr in zip(
|
|
955
|
+
fitwrite_spec.load_fit_spec()['INSTROKE_AXIS_DEV_FIELDS'], axis_arrays):
|
|
956
|
+
fid, name, bt, size, scale, units = axis_row
|
|
957
|
+
arr = np.nan_to_num(arr, nan=0.0, posinf=0.0, neginf=0.0)
|
|
958
|
+
if bt == BaseType.UINT8:
|
|
959
|
+
arr = np.clip(arr, 0, UINT8_MAX_VALID)
|
|
960
|
+
elif bt == BaseType.UINT16:
|
|
961
|
+
arr = np.clip(arr, 0, UINT16_MAX_VALID)
|
|
962
|
+
dev_arrays[fid] = arr
|
|
963
|
+
dev_specs.append((fid, '_instroke_axis', name, bt, size, scale, units))
|
|
943
964
|
|
|
944
965
|
# Build FIT file
|
|
945
966
|
min_str = 50 if dev_specs else 8
|
|
@@ -1097,8 +1118,9 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
1097
1118
|
elif lap_col is not None:
|
|
1098
1119
|
work_mask = np.ones(nr_rows, dtype=bool)
|
|
1099
1120
|
|
|
1100
|
-
# Laps follow lapIdx and are split wherever the intensity changes, so
|
|
1101
|
-
#
|
|
1121
|
+
# Laps follow lapIdx and are also split wherever the intensity changes, so each
|
|
1122
|
+
# Lap's native ``intensity`` describes all of its records. (The standard allows
|
|
1123
|
+
# a Lap to contain pauses; this is a choice, not a requirement, §4.1.)
|
|
1102
1124
|
lap_values = df[lap_col].values if lap_col is not None else np.zeros(nr_rows, dtype=int)
|
|
1103
1125
|
changed = np.zeros(nr_rows, dtype=bool)
|
|
1104
1126
|
if nr_rows > 1:
|
|
@@ -1112,6 +1134,10 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
1112
1134
|
work_mask, intensity_arr
|
|
1113
1135
|
)
|
|
1114
1136
|
|
|
1137
|
+
def _curve_in_row(i):
|
|
1138
|
+
curve = dev_arrays.get(HANDLE_FORCE_CURVE_FIELD_ID)
|
|
1139
|
+
return curve is not None and curve.ndim == 2 and bool(np.any(np.nan_to_num(curve[i]) != 0))
|
|
1140
|
+
|
|
1115
1141
|
def _emit_record(i):
|
|
1116
1142
|
"""Emit a single Record message for row index i."""
|
|
1117
1143
|
dev_fields = []
|
|
@@ -1119,12 +1145,14 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
1119
1145
|
for field_id, col, name, base_type, size, scale, units in dev_specs:
|
|
1120
1146
|
if field_id not in dev_arrays:
|
|
1121
1147
|
continue
|
|
1148
|
+
if field_id in INSTROKE_AXIS_FIELD_IDS and not _curve_in_row(i):
|
|
1149
|
+
continue # axis metadata only on Records that carry curve data (§6.3)
|
|
1122
1150
|
arr = dev_arrays[field_id]
|
|
1123
1151
|
is_array_field = (base_type == BaseType.UINT16 and size > 2)
|
|
1124
1152
|
if is_array_field and arr.ndim == 2:
|
|
1125
1153
|
row = arr[i]
|
|
1126
1154
|
vals = np.nan_to_num(row, nan=0.0, posinf=0.0, neginf=0.0)
|
|
1127
|
-
max_phys =
|
|
1155
|
+
max_phys = UINT16_MAX_VALID / max(scale, 1)
|
|
1128
1156
|
vals = np.clip(vals, 0, max_phys)
|
|
1129
1157
|
has_data = np.any(vals != 0)
|
|
1130
1158
|
if has_data:
|
|
@@ -1144,7 +1172,7 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
1144
1172
|
else:
|
|
1145
1173
|
val = float(arr[i])
|
|
1146
1174
|
if base_type == BaseType.UINT8:
|
|
1147
|
-
val = int(np.clip(round(val), 0,
|
|
1175
|
+
val = int(np.clip(round(val), 0, UINT8_MAX_VALID))
|
|
1148
1176
|
if val != 0 or field_id in ALWAYS_EMIT_DEV_FIELD_IDS:
|
|
1149
1177
|
dev = DeveloperField(
|
|
1150
1178
|
developer_data_index=_dev_index_for(field_id),
|
|
@@ -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):
|
|
81
|
+
if version not in (1, 2, 3, 4, 5):
|
|
82
82
|
warnings.warn(
|
|
83
|
-
'fit_export_spec.json version %s may be unsupported (expected 1, 2 or
|
|
83
|
+
'fit_export_spec.json version %s may be unsupported (expected 1, 2, 3, 4 or 5)' % version,
|
|
84
84
|
UserWarning,
|
|
85
85
|
stacklevel=2,
|
|
86
86
|
)
|