rowingdata 3.8.3__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.3/rowingdata.egg-info → rowingdata-3.8.4}/PKG-INFO +1 -1
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/data/fit_export_spec.json +4 -4
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/fitwrite.py +65 -20
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/fitwrite_spec.py +2 -2
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/rowingdata.py +1 -1
- {rowingdata-3.8.3 → rowingdata-3.8.4/rowingdata.egg-info}/PKG-INFO +1 -1
- {rowingdata-3.8.3 → rowingdata-3.8.4}/tests/test_fit_standard.py +93 -7
- {rowingdata-3.8.3 → rowingdata-3.8.4}/tests/test_rowingdata.py +2 -2
- {rowingdata-3.8.3 → rowingdata-3.8.4}/LICENSE +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/MANIFEST.in +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/README.rst +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/bin/crewnerddata.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/bin/crewnerddata.tcx +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/bin/testdata.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/.buildinfo +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_images/2x20min.png +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_images/editrower.JPG +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_images/greghoc.png +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_images/image001.png +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_images/otwlogbook.JPG +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_images/otwscreenshot.JPG +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_images/screenshot.JPG +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_images/screenshotlogbook.JPG +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_images/woensdag.png +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_sources/index.txt +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_sources/modules.txt +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_sources/rowingdata.txt +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_static/ajax-loader.gif +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_static/alabaster.css +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_static/basic.css +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_static/comment-bright.png +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_static/comment-close.png +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_static/comment.png +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_static/custom.css +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_static/doctools.js +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_static/down-pressed.png +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_static/down.png +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_static/file.png +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_static/jquery-1.11.1.js +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_static/jquery.js +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_static/minus.png +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_static/plus.png +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_static/pygments.css +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_static/searchtools.js +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_static/underscore-1.3.1.js +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_static/underscore.js +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_static/up-pressed.png +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_static/up.png +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/_static/websupport.js +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/genindex.html +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/index.html +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/modules.html +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/objects.inv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/py-modindex.html +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/rowingdata.html +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/search.html +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/docs/_build/html/searchindex.js +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/__init__.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/__main__.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/boatedit.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/checkdatafiles.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/copystats.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/crewnerdplot.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/crewnerdplottime.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/csvparsers.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/ergdataplot.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/ergdataplottime.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/ergdatatotcx.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/ergstickplot.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/ergstickplottime.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/ergsticktotcx.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/fit_garmin_bridge.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/fit_transcode.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/gpxtools.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/gpxwrite.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/konkatenaadje.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/laptesting.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/obsolete.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/otherparsers.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/painsled_desktop_plot.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/painsled_desktop_plottime.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/painsled_desktop_toc2.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/painsledplot.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/painsledplottime.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/painsledtoc2.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/roweredit.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/rowproplot.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/rowproplottime.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/speedcoachplot.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/speedcoachplottime.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/speedcoachtoc2.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/tcxplot.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/tcxplot_nogeo.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/tcxplottime.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/tcxplottime_nogeo.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/tcxtoc2.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/tcxtools.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/trainingparser.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/utils.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/windcorrected.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata/writetcx.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata.egg-info/SOURCES.txt +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata.egg-info/dependency_links.txt +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata.egg-info/not-zip-safe +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata.egg-info/requires.txt +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/rowingdata.egg-info/top_level.txt +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/setup.cfg +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/setup.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/2016-03-25-0758.CSV +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/2016-03-25-0758_data.CSV +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/2x20min_o.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/2x2km.tcx +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/3km_cd_o.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/3x250m.tcx +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/EUBoatCoach.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/EmpowerSpeedCoachForce.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/NKEmporfromgreg.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/NKLiNKv130.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/NoHR.tcx +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/PainsledForce.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/RP_interval.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/RP_interval.csv_o.CSV +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/RP_testdata.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/SpdCoach2_imp_inconsistent.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/SpdCoachAmbiguous.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/SpeedCoach GPS Workout.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/SpeedCoach2Link_interval.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/SpeedCoach2Linkv1.27.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/SpeedCoach2v2.12.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/Speedcoach2example.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/aritmo.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/bc1.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/bc2.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/bc3.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/boatcoach.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/boatcoach_fixed_distance.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/boatcoach_otw.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/correctedpainsled.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/cottwich.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/coxmate.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/crewnerd_interval.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/crewnerddata.CSV +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/crewnerddata.tcx +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/crewnerddata_o.CSV +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/cumvalues.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/ergdata_example.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/ergdata_example.csv_o.CSV +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/ergstick.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/ergstick.csv_o.CSV +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/ergstick2.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/ergstick_o.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/example.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/example_data.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/faketcx.tcx +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/float.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/herodata.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/humon.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/impeller_empower.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/invalidchar.tcx +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/kinomap.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/mystery.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/nk_logbook.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/painsled.tcx +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/painsled_desktop_example.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/painsled_out_data.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/painsled_to_csv_20160221-105218_erg-400150318_760465m.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/quiske_per_stroke_left.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/quiske_per_stroke_new.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/quiske_per_stroke_right.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/quiske_per_stroke_seat.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/recover.tcx +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/ritmointervals.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/rowingdata_eth.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/rowinginmotionexample.TCX +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/rowinginmotionexample.TCX_o.CSV +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/rowperfect.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/rowpro5.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/rowpro_carrick.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/rp3_curve.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/rp3intervals.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/rp3intervals2.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/rp_out.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/smartrow.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/smartrow_intervals.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/spdcoach2noheader.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/speedcoach2test2.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/speedcoach3test3.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/speedcoachexample.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/speedcoachexample.csv_o.CSV +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/strava_export.tcx +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/summarytest.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/testdata.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/testdata_part1.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/testdata_part2.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/testdatasummary.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/testlapidx.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/testtcs_210614.tcx +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/testtcx.tcx +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/testtcx_210614.tcx +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata/tim.csv +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/testdata//345/210/222/350/210/271.csv" +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/tests/test_fit_instroke_export.py +0 -0
- {rowingdata-3.8.3 → rowingdata-3.8.4}/tests/test_fit_transcode.py +0 -0
- {rowingdata-3.8.3 → 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
|
|
@@ -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/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. 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. 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",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
{"field_id": 6, "group": "rowing", "fit_name": "AverageDriveForce", "base_type": "UINT16", "size": 2, "scale": 10, "units": "N", "df_columns": [" AverageDriveForce (N)"]},
|
|
56
56
|
{"field_id": 7, "group": "rowing", "fit_name": "PeakDriveForce", "base_type": "UINT16", "size": 2, "scale": 10, "units": "N", "df_columns": [" PeakDriveForce (N)"]},
|
|
57
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": "
|
|
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"},
|
|
@@ -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
|
|
@@ -334,7 +337,9 @@ def _default_instroke_abscissa_type(df, curve_canonical_names):
|
|
|
334
337
|
def _compute_instroke_axis_arrays(df, n_points, instroke_abscissa_type, instroke_sample_interval_ms):
|
|
335
338
|
"""
|
|
336
339
|
Per-record arrays for InstrokeAbscissaType (90), InstrokeSampleInterval (91), InstrokePointCount (92).
|
|
337
|
-
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.
|
|
338
343
|
"""
|
|
339
344
|
nr = len(df)
|
|
340
345
|
if n_points < 2:
|
|
@@ -344,6 +349,8 @@ def _compute_instroke_axis_arrays(df, n_points, instroke_abscissa_type, instroke
|
|
|
344
349
|
else:
|
|
345
350
|
atype = (INSTROKE_ABSCISSA_TIME_UNIFORM_MS if ' DriveTime (ms)' in df.columns
|
|
346
351
|
else INSTROKE_ABSCISSA_UNKNOWN)
|
|
352
|
+
if atype == INSTROKE_ABSCISSA_UNKNOWN:
|
|
353
|
+
return None
|
|
347
354
|
if instroke_sample_interval_ms is not None:
|
|
348
355
|
if np.isscalar(instroke_sample_interval_ms):
|
|
349
356
|
interval = np.full(nr, float(instroke_sample_interval_ms))
|
|
@@ -362,7 +369,7 @@ def _compute_instroke_axis_arrays(df, n_points, instroke_abscissa_type, instroke
|
|
|
362
369
|
interval = np.round(drive_ms / np.maximum(n_points - 1, 1))
|
|
363
370
|
interval = np.clip(interval, 0, UINT16_MAX_VALID)
|
|
364
371
|
else:
|
|
365
|
-
|
|
372
|
+
return None # no way to derive the spacing: do not write a placeholder
|
|
366
373
|
pc = np.full(nr, float(min(int(n_points), 127)))
|
|
367
374
|
ta = np.full(nr, float(atype))
|
|
368
375
|
return ta, interval, pc
|
|
@@ -784,8 +791,6 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
784
791
|
if col is not None:
|
|
785
792
|
arr = df[col].values
|
|
786
793
|
arr = _values_for_fit_field(arr, units, scale, base_type)
|
|
787
|
-
if field_id == 9:
|
|
788
|
-
arr = _workout_state_to_intensity(arr)
|
|
789
794
|
dev_arrays[field_id] = arr
|
|
790
795
|
dev_specs.append((field_id, col, name, base_type, size, scale, units))
|
|
791
796
|
for fd in OARLOCK_DEV_FIELDS:
|
|
@@ -809,6 +814,24 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
809
814
|
arr = _values_for_fit_field(arr, units, scale, base_type)
|
|
810
815
|
dev_arrays[field_id] = arr
|
|
811
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
|
|
812
835
|
for fd in PEAK_POSITION_DEV_FIELDS:
|
|
813
836
|
field_id, possible_cols, name, base_type, size, scale, units, transformer, clip_max = fd
|
|
814
837
|
col = next((c for c in possible_cols if c in df.columns), None)
|
|
@@ -903,6 +926,7 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
903
926
|
nmax = max(nmax, np_)
|
|
904
927
|
except (ValueError, KeyError, TypeError):
|
|
905
928
|
pass
|
|
929
|
+
axis_tuples = None
|
|
906
930
|
if nmax >= 2:
|
|
907
931
|
axis_abscissa = instroke_abscissa_type
|
|
908
932
|
if axis_abscissa is None:
|
|
@@ -910,19 +934,33 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
910
934
|
axis_abscissa = _default_instroke_abscissa_type(df, canonicals)
|
|
911
935
|
axis_tuples = _compute_instroke_axis_arrays(
|
|
912
936
|
df, nmax, axis_abscissa, instroke_sample_interval_ms)
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
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))
|
|
926
964
|
|
|
927
965
|
# Build FIT file
|
|
928
966
|
min_str = 50 if dev_specs else 8
|
|
@@ -1080,8 +1118,9 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
1080
1118
|
elif lap_col is not None:
|
|
1081
1119
|
work_mask = np.ones(nr_rows, dtype=bool)
|
|
1082
1120
|
|
|
1083
|
-
# Laps follow lapIdx and are split wherever the intensity changes, so
|
|
1084
|
-
#
|
|
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.)
|
|
1085
1124
|
lap_values = df[lap_col].values if lap_col is not None else np.zeros(nr_rows, dtype=int)
|
|
1086
1125
|
changed = np.zeros(nr_rows, dtype=bool)
|
|
1087
1126
|
if nr_rows > 1:
|
|
@@ -1095,6 +1134,10 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
1095
1134
|
work_mask, intensity_arr
|
|
1096
1135
|
)
|
|
1097
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
|
+
|
|
1098
1141
|
def _emit_record(i):
|
|
1099
1142
|
"""Emit a single Record message for row index i."""
|
|
1100
1143
|
dev_fields = []
|
|
@@ -1102,6 +1145,8 @@ def write_fit(file_name, df, row_date="2016-01-01", notes="Exported by Rowingdat
|
|
|
1102
1145
|
for field_id, col, name, base_type, size, scale, units in dev_specs:
|
|
1103
1146
|
if field_id not in dev_arrays:
|
|
1104
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)
|
|
1105
1150
|
arr = dev_arrays[field_id]
|
|
1106
1151
|
is_array_field = (base_type == BaseType.UINT16 and size > 2)
|
|
1107
1152
|
if is_array_field and arr.ndim == 2:
|
|
@@ -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):
|
|
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, 3 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
|
)
|
|
@@ -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
|
|
@@ -168,15 +168,45 @@ class TestStandardEncoding(unittest.TestCase):
|
|
|
168
168
|
]
|
|
169
169
|
assert versions == [1]
|
|
170
170
|
|
|
171
|
-
def
|
|
171
|
+
def test_workout_state_field_9_is_never_written(self):
|
|
172
|
+
"""Field 9 was removed from the standard; intensity lives on the Lap only."""
|
|
172
173
|
df = _sample_df()
|
|
173
174
|
df[' WorkoutState'] = [1, 3, 5] # rowing, interval rest, interval work
|
|
174
175
|
fit = self._write(df=df)
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
assert
|
|
176
|
+
assert 9 not in _descriptions(fit)
|
|
177
|
+
for r in fit.get_messages('record'):
|
|
178
|
+
assert _record_field(r, 'WorkoutState') is None
|
|
179
|
+
laps = list(fit.get_messages('lap'))
|
|
180
|
+
assert [lap.get_value('intensity') for lap in laps] == ['active', 'rest', 5] # 5 = interval
|
|
181
|
+
|
|
182
|
+
def test_unknown_abscissa_curve_is_not_written(self):
|
|
183
|
+
"""InstrokeAbscissaType 0 must never be written (§6.3): the curve is left out."""
|
|
184
|
+
import warnings
|
|
185
|
+
df = _sample_df(curve=True).drop(columns=[' DriveTime (ms)', ' DriveLength (meters)'])
|
|
186
|
+
with warnings.catch_warnings(record=True) as caught:
|
|
187
|
+
warnings.simplefilter('always')
|
|
188
|
+
fit = self._write(df=df, instroke_export='downsampled')
|
|
189
|
+
assert any('X-axis' in str(w.message) for w in caught)
|
|
190
|
+
descriptions = _descriptions(fit)
|
|
191
|
+
for field_id in (60, 90, 91, 92):
|
|
192
|
+
assert field_id not in descriptions
|
|
193
|
+
|
|
194
|
+
def test_abscissa_fields_only_with_curve_data(self):
|
|
195
|
+
df = _sample_df(curve=True)
|
|
196
|
+
df.loc[1, 'curve_data'] = None
|
|
197
|
+
fit = self._write(df=df, instroke_export='downsampled')
|
|
198
|
+
for r, has_curve in zip(fit.get_messages('record'), (True, False, True)):
|
|
199
|
+
assert (_record_field(r, 'InstrokeAbscissaType') is not None) == has_curve
|
|
200
|
+
if has_curve:
|
|
201
|
+
assert _record_field(r, 'InstrokeAbscissaType').raw_value != 0
|
|
202
|
+
|
|
203
|
+
def test_dual_oarlock_summary_is_side_average(self):
|
|
204
|
+
df = _sample_df(dual_oarlock=True)
|
|
205
|
+
df['catch'] = [-10.0, -10.0, -10.0] # source summary is overridden by the average
|
|
206
|
+
fit = self._write(df=df)
|
|
207
|
+
first = next(iter(fit.get_messages('record')))
|
|
208
|
+
assert _record_field(first, 'Catch').raw_value == round(-32.1 * 10) # (-32.0 + -32.2) / 2
|
|
209
|
+
assert _record_field(first, 'EffectiveArc').raw_value == round(85.25 * 10)
|
|
180
210
|
|
|
181
211
|
def test_every_lap_has_intensity_and_rest_is_its_own_lap(self):
|
|
182
212
|
df = _sample_df()
|
|
@@ -301,7 +331,7 @@ class TestInstrokeNamespace(unittest.TestCase):
|
|
|
301
331
|
fit = self._write_curves('full')
|
|
302
332
|
by_index = _dev_index_by_app_id(fit)
|
|
303
333
|
desc = _descriptions(fit)
|
|
304
|
-
for field_id in (0,
|
|
334
|
+
for field_id in (0, 10):
|
|
305
335
|
assert by_index[desc[field_id]['dev_index']] == fitwrite.ROWINGDATA_APP_ID
|
|
306
336
|
|
|
307
337
|
|
|
@@ -342,6 +372,62 @@ class TestReaderMapsStandardFields(unittest.TestCase):
|
|
|
342
372
|
parsed = rowingdata.FITParser(self.outfile).df
|
|
343
373
|
assert list(parsed[' WorkoutState']) == [1, 3, 5]
|
|
344
374
|
|
|
375
|
+
def _write_file_with_field_9(self, states, protocol_version):
|
|
376
|
+
"""An older file: record field 9 (WorkoutState), written by hand since
|
|
377
|
+
the exporter no longer produces it. No Lap carries an intensity, so the
|
|
378
|
+
record field is the only source of the state."""
|
|
379
|
+
from fit_tool.base_type import BaseType
|
|
380
|
+
from fit_tool.developer_field import DeveloperField
|
|
381
|
+
from fit_tool.fit_file_builder import FitFileBuilder
|
|
382
|
+
from fit_tool.profile.messages.developer_data_id_message import DeveloperDataIdMessage
|
|
383
|
+
from fit_tool.profile.messages.field_description_message import FieldDescriptionMessage
|
|
384
|
+
from fit_tool.profile.messages.file_id_message import FileIdMessage
|
|
385
|
+
from fit_tool.profile.messages.record_message import RecordMessage
|
|
386
|
+
from fit_tool.profile.profile_type import FileType, Manufacturer
|
|
387
|
+
|
|
388
|
+
builder = FitFileBuilder(auto_define=True, min_string_size=50)
|
|
389
|
+
file_id = FileIdMessage()
|
|
390
|
+
file_id.type = FileType.ACTIVITY
|
|
391
|
+
file_id.manufacturer = Manufacturer.GARMIN.value
|
|
392
|
+
file_id.time_created = 1_000_000_000_000
|
|
393
|
+
builder.add(file_id)
|
|
394
|
+
dev_id = DeveloperDataIdMessage()
|
|
395
|
+
dev_id.application_id = fitwrite.ROWINGDATA_APP_ID
|
|
396
|
+
dev_id.developer_data_index = 0
|
|
397
|
+
if protocol_version is not None:
|
|
398
|
+
dev_id.application_version = protocol_version
|
|
399
|
+
builder.add(dev_id)
|
|
400
|
+
desc = FieldDescriptionMessage()
|
|
401
|
+
desc.developer_data_index = 0
|
|
402
|
+
desc.field_definition_number = 9
|
|
403
|
+
desc.fit_base_type_id = BaseType.UINT8.value
|
|
404
|
+
desc.field_name = 'WorkoutState'
|
|
405
|
+
desc.scale = 1
|
|
406
|
+
desc.offset = 0
|
|
407
|
+
desc.units = ''
|
|
408
|
+
builder.add(desc)
|
|
409
|
+
for i, state in enumerate(states):
|
|
410
|
+
field = DeveloperField(
|
|
411
|
+
developer_data_index=0, field_id=9, size=1, name='WorkoutState',
|
|
412
|
+
base_type=BaseType.UINT8, scale=1, offset=0, units='')
|
|
413
|
+
field.set_value(0, state)
|
|
414
|
+
rec = RecordMessage(developer_fields=[field])
|
|
415
|
+
rec.timestamp = 1_000_000_000_000 + i * 2000
|
|
416
|
+
rec.distance = 8.5 * (i + 1)
|
|
417
|
+
builder.add(rec)
|
|
418
|
+
builder.build().to_file(self.outfile)
|
|
419
|
+
|
|
420
|
+
def test_field_9_is_still_read_from_older_files(self):
|
|
421
|
+
"""Field 9 left the standard, but files that carry it are still read."""
|
|
422
|
+
# Protocol version 1: field 9 holds FIT intensity values (0 Active, 1 Rest, 5 Interval)
|
|
423
|
+
self._write_file_with_field_9([0, 1, 5], protocol_version=1)
|
|
424
|
+
parsed = rowingdata.FITParser(self.outfile).df
|
|
425
|
+
assert list(parsed[' WorkoutState']) == [1, 3, 5] # rowingdata codes
|
|
426
|
+
# No application_version: pre-protocol files carry rowingdata codes as they are
|
|
427
|
+
self._write_file_with_field_9([1, 3, 5], protocol_version=None)
|
|
428
|
+
parsed = rowingdata.FITParser(self.outfile).df
|
|
429
|
+
assert list(parsed[' WorkoutState']) == [1, 3, 5]
|
|
430
|
+
|
|
345
431
|
def test_unknown_intensity_is_read_as_other(self):
|
|
346
432
|
from rowingdata import otherparsers
|
|
347
433
|
f = otherparsers._fit_intensity_to_workout_state
|
|
@@ -1067,7 +1067,7 @@ class TestFITParser:
|
|
|
1067
1067
|
"""fit_export_spec.json loads; field IDs and names match exporter expectations."""
|
|
1068
1068
|
from rowingdata import fitwrite_spec
|
|
1069
1069
|
raw = fitwrite_spec.load_fit_spec_raw()
|
|
1070
|
-
assert raw['version'] ==
|
|
1070
|
+
assert raw['version'] == 5
|
|
1071
1071
|
assert raw['protocol_version'] == 1
|
|
1072
1072
|
assert raw['handle_force_curve_field_id'] == 60
|
|
1073
1073
|
assert raw['instroke_dynamic']['summary_start'] == 20
|
|
@@ -1076,7 +1076,7 @@ class TestFITParser:
|
|
|
1076
1076
|
assert sorted(ids) == sorted(set(ids)), 'duplicate field_id in spec'
|
|
1077
1077
|
assert 0 in ids and 17 in ids and 19 in ids and 90 in ids and 93 in ids
|
|
1078
1078
|
spec = fitwrite_spec.load_fit_spec()
|
|
1079
|
-
assert len(spec[
|
|
1079
|
+
assert len(spec["ROWING_DEV_FIELDS"]) == 9 # fields 4, 5, 9 and 93 are read-only legacy
|
|
1080
1080
|
assert len(spec['OARLOCK_DEV_FIELDS']) == 6
|
|
1081
1081
|
assert len(spec['OARLOCK_DUAL_PAIRS']) == 6
|
|
1082
1082
|
assert spec['OARLOCK_DUAL_PAIRS'][0][1][0] == 200
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|