Skip to content

Conversation

elbeno
Copy link
Contributor

@elbeno elbeno commented May 16, 2025

🎨 Refactor gen_str_catalog.py

Problem:

  • Ad-hoc data structures in gen_str_catalog.py are unwieldy.
  • Enum lookup was broken by encoding change with encode_32 etc.
  • Quality build is not clean because some python scripts are not formatted with
    black.

Solution:

  • Introduction python classes for Message and Module; simplify code.
  • Add some tests for gen_str_catalog.py.
  • Fix enum lookup: include enum info inside encode_32<T>.
  • Format stray python scripts.

@elbeno elbeno changed the title Refactor gen str 🎨 Refactor gen_str_catalog.py May 16, 2025
@elbeno elbeno force-pushed the refactor-gen-str branch from 15590b8 to 39f97ad Compare May 16, 2025 22:40
elbeno added 2 commits May 16, 2025 16:49
Problem:
- Ad-hoc data structures in `gen_str_catalog.py` are unwieldy.
- Enum lookup was broken by encoding change with `encode_32` etc.

Solution:
- Introduction python classes for `Message` and `Module`; simplify code.
- Add some tests for `gen_str_catalog.py`.
- Fix enum lookup: include enum info inside `encode_32<T>`.
Problem:
- Quality build is not clean because some python scripts are not formatted with
  black.

Solution:
- Format them.
@bdeane-intel bdeane-intel merged commit b580ab5 into intel:main May 19, 2025
27 checks passed
@elbeno elbeno deleted the refactor-gen-str branch May 20, 2025 15:14
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.

3 participants