Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve UIntHistogram #54

Merged
merged 2 commits into from
Oct 13, 2023
Merged

Improve UIntHistogram #54

merged 2 commits into from
Oct 13, 2023

Conversation

imagejan
Copy link
Member

Number of bins should be len(frequencies), so let's reflect this in the calculations. Test are adapted to reflect accurate reporting of the number of bins (n_bins()).

Closes #53.

We might want to add a test for loading legacy .npz files that were saved with a previous version.

Number of bins should be len(frequencies), so let's reflect this in the calculations.
Test are adapted to reflect accurate reporting of the number of bins (n_bins).
@codecov
Copy link

codecov bot commented Oct 12, 2023

Codecov Report

Merging #54 (f5b323a) into main (4e73d59) will increase coverage by 0.62%.
The diff coverage is 98.33%.

@@            Coverage Diff             @@
##             main      #54      +/-   ##
==========================================
+ Coverage   93.10%   93.73%   +0.62%     
==========================================
  Files          15       15              
  Lines        1291     1309      +18     
==========================================
+ Hits         1202     1227      +25     
+ Misses         89       82       -7     
Files Coverage Δ
tests/test_UIntHistogram.py 99.53% <100.00%> (+0.04%) ⬆️
src/faim_hcs/UIntHistogram.py 93.45% <94.73%> (+6.18%) ⬆️

Include a test for loading .npz files written with `bins` included, which we now ignore.
@tibuch tibuch merged commit 5bd055f into main Oct 13, 2023
6 checks passed
@tibuch tibuch deleted the improve-uinthistogram branch October 13, 2023 07:47
@tibuch
Copy link
Contributor

tibuch commented Oct 13, 2023

Thank you! Makes the code more readable 🚀

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.

Improve UIntHistogram
2 participants