guybuk / bridge-ds

MIT License
15 stars 0 forks source link

Deprecate ElementType #4

Closed guybuk closed 2 weeks ago

guybuk commented 1 month ago

Due to legacy design, the ElementType is an enum with values that sort of, but not exactly, overlap with DataCategory. In practice, ElementTypes are only semantic:

The go-to solution is to just use strings, but we're not fans of magic strings everywhere. Also, there's a need to synchronize between element types in datasets (e.g. 'image', 'class_label') and display engines, so we don't get 'image' vs 'img' or 'class_label' vs 'class' mismatches.

guybuk commented 2 weeks ago

Closed with #12