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: big update to events parsing. add .events method, deprecate recorded_date #144

Closed tlambert03 closed 1 year ago

tlambert03 commented 1 year ago

This PR adds proper support for parsing events that occur during the course of an experiment.

codecov[bot] commented 1 year ago

Codecov Report

Merging #144 (c58d0bd) into main (74faef9) will increase coverage by 0.16%. The diff coverage is 92.78%.

@@            Coverage Diff             @@
##             main     #144      +/-   ##
==========================================
+ Coverage   92.64%   92.80%   +0.16%     
==========================================
  Files          14       14              
  Lines        1890     2058     +168     
==========================================
+ Hits         1751     1910     +159     
- Misses        139      148       +9     
Impacted Files Coverage Δ
src/nd2/_legacy/_legacy.py 88.63% <20.00%> (-1.28%) :arrow_down:
src/nd2/_clx_xml.py 89.36% <50.00%> (-3.83%) :arrow_down:
src/nd2/_pysdk/_parse.py 92.92% <77.77%> (-1.66%) :arrow_down:
src/nd2/_pysdk/_pysdk.py 91.30% <96.96%> (+1.59%) :arrow_up:
src/nd2/_pysdk/_sdk_types.py 100.00% <100.00%> (ø)
src/nd2/_util.py 90.62% <100.00%> (+3.66%) :arrow_up:
src/nd2/nd2file.py 95.42% <100.00%> (+0.28%) :arrow_up:
src/nd2/structures.py 96.24% <100.00%> (+0.18%) :arrow_up:

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