Skip to content

feat(generator): add gen.py script to generate CSV from ESA-ADB telemetry data - #50

Merged
MikolajKos merged 1 commit into
mainfrom
chore/tools-layout
Nov 17, 2026
Merged

MikolajKos merged 1 commit into
mainfrom
chore/tools-layout

Conversation

@Dzanek309

Copy link
Copy Markdown
Collaborator

Type of change:

  • Feature

Purpose of this PR:

  • Add tools/generator/gen.py, which turns ESA-ADB Mission 1 channel_60 into a headerless id,timestamp,channel,value CSV for LogGrid
  • Add --size (binary K/M/G units) to keep appending time-shifted copies of the channel until the file reaches the target size
  • Add --copies N, --rows N and --dump for an exact number of copies, a small sample, or a single full copy
  • Shift copy c by c · span so each copy starts 30 s after the last sample of the previous one (timestamps keep increasing, with no gaps and no overlap)
  • Write each value in the shortest form that reads back as the exact float32, with an assert, so reference sums match bit for bit
  • Load the channel pickles through a restricted Safe unpickler that only allows pandas, numpy and builtins.slice (plain pickle.load can run arbitrary code)
  • Add tools/generator/README.md covering usage, parameters, output format, why channel 60 and the 30 s step were chosen, and expected sizes (1G gives 2 copies, 1.29 GB)

@Dzanek309
Dzanek309 requested a review from MikolajKos November 17, 2026 10:31
@Dzanek309 Dzanek309 self-assigned this Nov 17, 2026
@Dzanek309 Dzanek309 added documentation Improvements or additions to documentation enhancement New feature or request labels Nov 17, 2026

@MikolajKos MikolajKos left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@MikolajKos
MikolajKos merged commit c90fa4b into main Nov 17, 2026
4 checks passed
@Dzanek309
Dzanek309 deleted the chore/tools-layout branch November 17, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants