Skip to content

Allow low frequency waveform data into parquet - #83

Merged
jeremyestein merged 14 commits into
devfrom
jeremy/low-freq
Aug 19, 2026
Merged

Allow low frequency waveform data into parquet#83
jeremyestein merged 14 commits into
devfrom
jeremy/low-freq

Conversation

@jeremyestein

@jeremyestein jeremyestein commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Add an extra column to the CSV + parquet files: values becomes numeric_values and string_values.

HF -> always numeric_values.
LF -> can be either (but not both): categoricals are always mapped to their string representation; numericals are left as such.

As things stand, a variable with a mix of units (eg. 1408) will create one file per unit.

For LF, always store data as an array of length 1 per row. We have the flexibility to group together values in arrays in future if we decide that. It's an array because parquet is strongly typed so data columns have to be arrays (didn't want to add more cols for scalar values).

I kept the column names/types the same between LF and HF to simplify the parquet conversion and pseudonymisation code. Although those that don't apply (channel ID, sampling rate) can be null.

@jeremyestein

Copy link
Copy Markdown
Collaborator Author

CI failure is because PIXL has moved on. This is being fixed in #81

@jeremyestein
jeremyestein marked this pull request as ready for review August 18, 2026 10:00
@codecov

codecov Bot commented Aug 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 20.39%. Comparing base (572d617) to head (0f66a8c).

Additional details and impacted files
@@            Coverage Diff             @@
##              dev      #83      +/-   ##
==========================================
- Coverage   23.07%   20.39%   -2.69%     
==========================================
  Files          12       13       +1     
  Lines         429      510      +81     
==========================================
+ Hits           99      104       +5     
- Misses        330      406      +76     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@thompson318 thompson318 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I like the new structure for json to to message classes. Logical and easy to read. Tests look good and fairly comprehensive.
One comment regarding what happens on a value error from write frame to think about.

Comment thread src/controller.py
@jeremyestein jeremyestein linked an issue Aug 19, 2026 that may be closed by this pull request
2 tasks
@jeremyestein
jeremyestein merged commit 861e283 into dev Aug 19, 2026
4 checks passed
@jeremyestein
jeremyestein deleted the jeremy/low-freq branch August 19, 2026 11:09
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.

Waveform metadata

2 participants