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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nitdms-1.4.4-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nitdms-1.4.4.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for nitdms-1.4.4.tar.gz
Algorithm Hash digest
SHA256 72c6b9b5337846f4aa2452fa8840f74758e567b579313f67fc1519d3e98e7907
MD5 edb7fd5b36c885e75c8f142194ed05c3
BLAKE2b-256 5f94f3d25a96db307a248a5feb16f8a89d077c42ec4176685037ce3a2aa3c5bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nitdms-1.4.4-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for nitdms-1.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ceed97f50b684540af4506cfb658fec2a167a067c65de37131803d28eca6cffc
MD5 cd9ea99984f5678fe2f58a0755bcefc3
BLAKE2b-256 0b4ab89509ba5548ba64fe2bebfae5e52134acbaeca3eace5f11be2868464dec

See more details on using hashes here.

Supported by

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