Skip to content

Add EVC tlog parser and chart generator - #1

Draft
renovictor with Copilot wants to merge 2 commits into
mainfrom
copilot/plot-evc-tlog-data
Draft

Add EVC tlog parser and chart generator#1
renovictor with Copilot wants to merge 2 commits into
mainfrom
copilot/plot-evc-tlog-data

Conversation

Copilot AI commented Mar 24, 2026

Copy link
Copy Markdown

Parse Tykon EVC transaction logs (downloaded via RF Data Logger) and generate matplotlib charts from the session data.

Core modules

  • tlog_parser.py — parses collect_tlog_2.0 format files into TlogFile/TlogRecord dataclasses; extracts metadata from // comment headers, per-session rows, and the Printed from SN: trailer
  • plotter.py — generates 5 chart types; faulted sessions (fault != "0000") highlighted in red:
    • Energy per session, session duration (bar charts)
    • Energy over time, cumulative energy (time-series)
    • Daily energy totals (when log spans ≥ 2 days)
  • tlog2chart.py — CLI entry point

Usage

python tlog2chart.py sample_data/sample_tlog.txt -o charts/
# or glob multiple files
python tlog2chart.py logs/*_tlog.txt -o charts/

Other

  • sample_data/sample_tlog.txt — 20-session reference file in collect_tlog_2.0 format
  • 29 pytest tests covering parser (metadata, records, empty tlog) and plotter (all chart files created)
  • requirements.txt: matplotlib>=3.7

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/search/repositories
    • Triggering command: /usr/bin/curl curl -s REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

plot EVC tlog data


📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Co-authored-by: renovictor <13605865+renovictor@users.noreply.github.com>
Agent-Logs-Url: https://github.com/renovictor/tlog2chart/sessions/940b9a0d-5ac6-4588-ab76-526ab697c75c
Copilot AI changed the title [WIP] Add plot functionality for EVC tlog data Add EVC tlog parser and chart generator Mar 24, 2026
Copilot AI requested a review from renovictor March 24, 2026 04:04
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

Successfully merging this pull request may close these issues.

2 participants