Opening the metrics plot or exporting metrics could crash with IndexError: list index out of range in interaction_time.events_from_client_log when logs/client.csv contained blank lines. Some logs also had records that were out of chronological order, which may cause problems for computation of annotation duration.
Fixed in b9fd4b2: adds log_recovery.py, which detects blank/out-of-order lines and, when found, backs up the original log as corrupt_client_backup_<datetime>.csv, removes blank/unparseable lines, and stable-sorts by timestamp before reprocessing. The metrics progress dialog shows the recovery steps.
Commit: b9fd4b2
Opening the metrics plot or exporting metrics could crash with
IndexError: list index out of rangeininteraction_time.events_from_client_logwhenlogs/client.csvcontained blank lines. Some logs also had records that were out of chronological order, which may cause problems for computation of annotation duration.Fixed in b9fd4b2: adds
log_recovery.py, which detects blank/out-of-order lines and, when found, backs up the original log ascorrupt_client_backup_<datetime>.csv, removes blank/unparseable lines, and stable-sorts by timestamp before reprocessing. The metrics progress dialog shows the recovery steps.Commit: b9fd4b2