med-material / HandStrengthener

HandStrengthener Assistive Training Tool
MIT License
1 stars 2 forks source link

Logging: CSV logs missing values at end of file #22

Closed bastianilso closed 3 years ago

bastianilso commented 3 years ago

In our Event CSV files, it seems like the CSV writer in our LoggingManager stops writing prematurely. This means the 5 last columns "TrialResult", "TrialGoal", "BCIConfidence", "InputNumber" and "BCIThresholdBuffer" contain no values in the last line of each event CSV file. For some reason our "Meta" and "Sample" CSV files are not affected.

This would be good to have fixed before we carry out evaluations with patients in September.

bastianilso commented 3 years ago

The problem and potential solution is the same as commit https://github.com/med-material/bci-PAM-game/commit/3117bf77f41776b0ede6606009c87cd570e5a885 for the PAM and Kiwi game. The problem seem to happen because we "quit twice".

However, the logging manager should write each line consistently, regardless of how many times we tell it to save.

bastianilso commented 3 years ago

Fixed with 1d15327cfc77bb618a9a8ec30b669876952cc447