Skip to main content

A pythonic reader for TDMS files generated by LabVIEW

Project description

Build Status Azure DevOps coverage

nitdms - A pythonic TDMS file reader

The main export from the nitdms package is the TdmsFile class. Upon instantiation, the reader loads the file into memory and discovers all of the file, group and channel objects and respective properties. These objects and properties are dynamically instantiated as attributes allowing easy access from within an interactive session with tab completion such as Jupyter or bash.

Channel data is returned as a numpy ndarray, or WaveformDT if data in the file is from LabVIEW's waveform data type. WaveformDT is a subclass of ndarray that mimics the waveform data type. LabVIEW's timestamp is stored as UTC in the TDMS file. nitdms returns the timestamp in the machine's local time zone consistent with LabVIEW and aligns with WaveformDT.

Installing

$ pip install nitdms

Usage

Within an interactive session with tab completion:

>>>from nitdms import TdmsFile
>>>tf = TdmsFile(<file>)
>>>data = tf.<group>.<channel>.data
>>>t0 = tf.<group>.<channel>.wf_start_time
>>>dt = tf.<group>.<channel>.wf_increment
>>>group_property = tf.<group>.<property>

Documentation

https://l-johnston.github.io/nitdms/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nitdms-1.4.23.tar.gz (12.0 kB view hashes)

Uploaded Source

Built Distribution

nitdms-1.4.23-py3-none-any.whl (14.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page