Skip to content

Make bin_signal compatible with 1d-array#1674

Open
ykyohei wants to merge 3 commits into
masterfrom
bin
Open

Make bin_signal compatible with 1d-array#1674
ykyohei wants to merge 3 commits into
masterfrom
bin

Conversation

@ykyohei

@ykyohei ykyohei commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

This is for binning 1d-array such as thermometer data to az.
This doesn't affect binning of 2d array.

There was an issue where, when the range was narrower than the bin_by value, the edge bins returned the wrong value due to np.digitize and np.clip.
This PR also fixes this issue. This error should not impact most analyses.

Added unit test for binning.

@ykyohei ykyohei requested a review from msilvafe June 23, 2026 13:33
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.

1 participant