Skip to content

python(feat): support enum_types for imports - #769

Merged
wei-sift merged 3 commits into
mainfrom
eng-14250-support-enum_types-on-all-sift_client-file-import-configs
Sep 1, 2026
Merged

wei-sift merged 3 commits into
mainfrom
eng-14250-support-enum_types-on-all-sift_client-file-import-configs

Conversation

@wei-sift

@wei-sift wei-sift commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

What was changed

Before:

  • ValueError: "CsvDataColumn" object has no field "enum_types"
  • Setting a channel to be an enum type would succeed but the downstream data displayed nothing

Enum channels were only supported on TDMS imports. enum_types now lives on DataColumnBase, so all import config data columns (CSV, Parquet, HDF5, ULog) accept a {name: key} mapping.

  • Add enum_types to DataColumnBase with a validator requiring ChannelDataType.ENUM, remove the duplicate field on TdmsDataColumn
  • Build ChannelConfigProto via a shared helper in every _to_proto, and read enums back in every _from_proto

Testing

Unit tests and manual imports with enum configs, validated the output

@github-actions

github-actions Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Python docs preview: https://sift-stack.github.io/sift/python/pr-769/

Deployed from 5e4eb8f. The link may take up to a minute to become live as GitHub Pages propagates.

@wei-sift
wei-sift requested a review from alexluck-sift August 31, 2026 23:45
@wei-sift
wei-sift marked this pull request as ready for review August 31, 2026 23:45
Comment thread python/lib/sift_client/sift_types/data_import.py
@wei-sift
wei-sift requested a review from alexluck-sift August 31, 2026 23:55
Comment thread python/lib/sift_client/sift_types/data_import.py Outdated
@wei-sift
wei-sift merged commit e03f5fe into main Sep 1, 2026
26 checks passed
@wei-sift
wei-sift deleted the eng-14250-support-enum_types-on-all-sift_client-file-import-configs branch September 1, 2026 18:31
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