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

Use file.readinto instead of np.fromfile when reading data #256

Merged
merged 1 commit into from
Oct 25, 2021

Conversation

adamreeve
Copy link
Owner

This is to avoid poor performance of np.fromfile in Python 3, and should help with #249

This is to avoid poor performance of np.fromfile,
see numpy/numpy#13319
@codecov-commenter
Copy link

codecov-commenter commented Oct 25, 2021

Codecov Report

Merging #256 (9e472c0) into master (194d22b) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #256   +/-   ##
=======================================
  Coverage   96.97%   96.98%           
=======================================
  Files          19       19           
  Lines        2478     2485    +7     
=======================================
+ Hits         2403     2410    +7     
  Misses         75       75           
Impacted Files Coverage Δ
nptdms/base_segment.py 95.65% <100.00%> (+0.35%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 194d22b...9e472c0. Read the comment docs.

@adamreeve adamreeve merged commit bfbf854 into master Oct 25, 2021
@adamreeve adamreeve deleted the fromfile_perf branch October 25, 2021 20:25
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