Skip to content

Fix phantom apr mass column miscalculation when apr_level > 7 - #144

Merged
ttricco merged 1 commit into
ttricco:mainfrom
chunliangmu:phantom_apr_bugfix
Apr 27, 2026
Merged

ttricco merged 1 commit into
ttricco:mainfrom
chunliangmu:phantom_apr_bugfix

Conversation

@chunliangmu

Copy link
Copy Markdown
Contributor

This fix the bug when creating mass columns for phantom dumpfiles with apr on:
When there are more than 7 apr levels, 2**(df['apr_level'] - 1) will overflow, due to df['apr_level'] having type of int8 (meaning 2**(df['apr_level'] - 1) cannot handle integers larger than 127).

@ttricco
ttricco merged commit 990bf49 into ttricco:main Apr 27, 2026
1 check passed
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