Skip to content

Redesign and track numba_types; exclude black-formatting for scripts generated by code_factory#396

Open
ilhamv wants to merge 7 commits intomcdc-project:devfrom
ilhamv:dev
Open

Redesign and track numba_types; exclude black-formatting for scripts generated by code_factory#396
ilhamv wants to merge 7 commits intomcdc-project:devfrom
ilhamv:dev

Conversation

@ilhamv
Copy link
Copy Markdown
Member

@ilhamv ilhamv commented Apr 13, 2026

code_factory generates mcdc_get/, mcdc_set/, and numba_types.py. The last one is currently not git-tracked because it is problem-dependent. Unfortunately, this problem-dependent behavior and literal import hinder running multiple instances of MC/DC simulation simultaneously.

This PR redesigns numba_types.py so that it is no longer problem-dependent.
Additionally, we exclude black-formatting check for the three files generated by code_factory.

@ilhamv ilhamv changed the title Redesign and track numba_types; skip black-formatting for scripts generated by code_factory Redesign and track numba_types; exclude black-formatting for scripts generated by code_factory Apr 13, 2026
@ilhamv ilhamv requested a review from nglaser3 April 13, 2026 22:46
Copy link
Copy Markdown
Collaborator

@nglaser3 nglaser3 left a comment

Choose a reason for hiding this comment

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

Thank you @ilhamv! The changes to numba_types looks good to me, and thank you for fixing the black changes to mcdc_get and mcdc_set! I have one request to add a docstring or comment to the decode_structure_item method in numba_objects_generator.py just to clarify what the indices into the item are, but otherwise approve. If you do not think the docstring / comment is needed since the method is in a part of the code that most people will never touch, that is ok with me and I will merge as is :)

@nglaser3 nglaser3 mentioned this pull request Apr 13, 2026
9 tasks
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