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
54 stars 15 forks source link

feat: better color object #218

Closed tlambert03 closed 8 months ago

tlambert03 commented 8 months ago

closes #184. Metadata.channel.color is now an (r,g,b,a) tuple. If you want the original Elements integer format, use color.as_abgr_u4()

codecov[bot] commented 8 months ago

Codecov Report

Attention: Patch coverage is 88.88889% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 95.19%. Comparing base (d1853b0) to head (b37c434).

Files Patch % Lines
src/nd2/structures.py 88.23% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #218 +/- ## ========================================== - Coverage 95.25% 95.19% -0.06% ========================================== Files 18 18 Lines 2422 2436 +14 ========================================== + Hits 2307 2319 +12 - Misses 115 117 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codspeed-hq[bot] commented 8 months ago

CodSpeed Performance Report

Merging #218 will not alter performance

Comparing color (b37c434) with main (d1853b0)

Summary

✅ 13 untouched benchmarks