tlambert03 / nd2

Full-featured nd2 (Nikon NIS Elements) file reader for python. Outputs to numpy, dask, and xarray. Exhaustive metadata extraction
https://tlambert03.github.io/nd2
BSD 3-Clause "New" or "Revised" License
53 stars 15 forks source link

feat: decode compressed lite variant, and read string type tags #159

Closed tlambert03 closed 1 year ago

tlambert03 commented 1 year ago

This PR parses and includes string columns found in the CustomData chunks (which were previously skipped, lacking good examples).

It also now deflates and parses compressed lite variant data chunks

codecov[bot] commented 1 year ago

Codecov Report

Merging #159 (208e1aa) into main (34a2586) will increase coverage by 0.16%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #159      +/-   ##
==========================================
+ Coverage   93.49%   93.66%   +0.16%     
==========================================
  Files          16       16              
  Lines        2261     2272      +11     
==========================================
+ Hits         2114     2128      +14     
+ Misses        147      144       -3     
Impacted Files Coverage Δ
src/nd2/_binary.py 91.01% <100.00%> (ø)
src/nd2/_clx_lite.py 91.50% <100.00%> (+1.41%) :arrow_up:
src/nd2/_pysdk/_pysdk.py 92.70% <100.00%> (+0.90%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

codspeed-hq[bot] commented 1 year ago

CodSpeed Performance Report

Merging #159 will not alter performances

Comparing string-events (208e1aa) with main (34a2586)

Summary

✅ 13 untouched benchmarks