Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging of training data #11

Closed
weinzmi opened this issue Jan 1, 2019 · 2 comments
Closed

Logging of training data #11

weinzmi opened this issue Jan 1, 2019 · 2 comments

Comments

@weinzmi
Copy link
Owner

weinzmi commented Jan 1, 2019

log the parameters for each training session in a yaml, csv or tcx file format

  • session name
  • program name
    • timestamp
    • watt
    • RPM
@weinzmi
Copy link
Owner Author

weinzmi commented Jan 1, 2019

tcx is hard to start with, so I try with csv
https://realpython.com/python-csv/

PROBLEM: maybe multi threading necessary for this to do not delay the loop for PWM
https://stackoverflow.com/questions/8241099/executing-tasks-in-parallel-in-python

PREREQUISITE:
#9 , otherwise, the code will get a mess

@weinzmi
Copy link
Owner Author

weinzmi commented Jan 4, 2019

implemented in machine.py and watt.py
not happy with the solution, because it is wrapped too much inside the watt.py

the csv files are saved in folder "trainings"
every training gets a new filename with date & time.
looking forward to clean the code and add the name of the wattprogram to the filename

output:

TIME,POWER,CADENCE
20190104-075726,25,33.3
20190104-075727,25,33.3
20190104-075728,25,33.3
...

@weinzmi weinzmi closed this as completed Jan 4, 2019
weinzmi added a commit that referenced this issue Jan 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant