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

Allow reading timestamps as raw TDMS timestamps #200

Merged
merged 12 commits into from
May 15, 2020
Merged

Conversation

adamreeve
Copy link
Owner

@adamreeve adamreeve commented May 13, 2020

Addresses #198

Adds a new raw_timestamps option when opening a TDMS file that controls whether timestamps are read as numpy datetime64 objects or raw TDMS timestamps. This includes timestamp data in channels, which use a new TimestampArray type that wraps np.ndarray and provides conversion to datetime64 arrays of different resolution.

@codecov-io
Copy link

codecov-io commented May 13, 2020

Codecov Report

Merging #200 into master will decrease coverage by 0.01%.
The diff coverage is 94.54%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #200      +/-   ##
==========================================
- Coverage   94.59%   94.58%   -0.02%     
==========================================
  Files          17       18       +1     
  Lines        2164     2252      +88     
==========================================
+ Hits         2047     2130      +83     
- Misses        117      122       +5     
Impacted Files Coverage Δ
nptdms/types.py 98.23% <80.00%> (+0.52%) ⬆️
nptdms/timestamp.py 90.00% <90.00%> (ø)
nptdms/channel_data.py 98.79% <100.00%> (-1.21%) ⬇️
nptdms/tdms.py 92.30% <100.00%> (+0.30%) ⬆️

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 c1d0689...f1c85ee. Read the comment docs.

@adamreeve adamreeve merged commit c4ced51 into master May 15, 2020
@adamreeve adamreeve deleted the raw_timestamps branch May 21, 2020 02:20
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