etoumey / tripy

Python TRIMP calculator and training companion for running.
3 stars 0 forks source link

PMC update with non-chronological activities #1

Closed etoumey closed 5 years ago

etoumey commented 6 years ago

buildPMC function needs to work with gpx files in non chronological order. The PMC array is appended when a unique activity is added. Furthermore, the PMC ATL and CTL values will need to be updated for all activities after the new activity is added.

jtoumey commented 5 years ago

😁

etoumey commented 5 years ago

Now replace existing line rather insert above it

etoumey commented 5 years ago

Works in sequence unless date of activity being analyzed is before the first date of the PMC

etoumey commented 5 years ago

Patched for dates before start of PMC, just need to backfill the ATL CTL values

etoumey commented 5 years ago

This has been fixed

etoumey commented 5 years ago

Okay actually this has not been fixed. If the date already exists in the PMC without the activity, the activity will not be added. Because of the addition of the process log, there is no need to verify if the activity is already in the PMC. So the dupe checking in buildPMC() can be removed.

etoumey commented 5 years ago

okay now it's done

etoumey commented 5 years ago

it really still isn't ugh

etoumey commented 5 years ago

Testing complete. Should be good.