Skip to main content

A pythonic reader for TDMS files generated by LabVIEW

Project description

Build Status Azure DevOps coverage PyPI version

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-2.0.7.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

nitdms-2.0.7-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

Details for the file nitdms-2.0.7.tar.gz.

File metadata

  • Download URL: nitdms-2.0.7.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.12

File hashes

Hashes for nitdms-2.0.7.tar.gz
Algorithm Hash digest
SHA256 6f3b597eea7282badaa1fb234473ff189d800d4d7e810c161f42013356d4f451
MD5 a960164030eb2d97484b1d8fc5fd2ed2
BLAKE2b-256 1f30e37761fd42f99347628a6a6d8f77bbf5cdc193306732620e79a48dea5146

See more details on using hashes here.

File details

Details for the file nitdms-2.0.7-py3-none-any.whl.

File metadata

  • Download URL: nitdms-2.0.7-py3-none-any.whl
  • Upload date:
  • Size: 21.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.12

File hashes

Hashes for nitdms-2.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3f43dc5bd9f426f0f53bceb42dcaa553dd5c26153702eade1e0f5db50c5aee6b
MD5 425fe44fe1996947be31cad6af8c4f3a
BLAKE2b-256 837821896eedbc0c5ccf59bb9f97d4a3a3a043340e81b0a11678bf706f07cd9f

See more details on using hashes here.

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