Skip to content

Conversation

@henryiii
Copy link
Member

@henryiii henryiii commented Aug 13, 2025

This PR fixes a bug where the input 'groups' list for rebinning was modified in-place, causing errors when reused. Now, a new list is created using [1, *groups] to handle underflow bins, preventing mutation of user input. This resolves issues with consecutive rebin operations and improves API safety. Closes #1046. Description and test generated by Copilot.

@github-actions github-actions bot added the needs changelog Might need a changelog entry label Aug 13, 2025
@henryiii henryiii changed the title Fix: avoid in-place modification of groups in rebinning fix: avoid in-place modification of groups in rebinning Aug 13, 2025
@henryiii henryiii merged commit 184cd3c into develop Aug 13, 2025
20 checks passed
@henryiii henryiii deleted the fix/rebin-groups-mutation branch August 13, 2025 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs changelog Might need a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] variable rebin seems to modify list in-place

2 participants