Skip to main content

ASAM MDF measurement data file parser

Project description

asammdf is a fast parser/editor for ASAM (Associtation for Standardisation of Automation and Measuring Systems) MDF (Measurement Data Format) files. Currently only version 3 is supported.

Project goals

The main goals for this library are:

  • to be faster than the other Python based mdf libraries

  • clean and simple data types

Dependencies

asammdf uses the following libraries

  • numpy : the heart that makes all tick

  • numexpr : for formula based channel conversions

  • blosc : optionally used for in memmory raw channel data compression

Usage

from asammdf import MDF3
mdf = MDF3('sample.mdf')
speed = mdf.get_signal_by_name('WheelSpeed')

Features

  • read sorted and unsorted MDF v3 files

  • files are loaded in RAM for fast operations
    • for low memory computers or for large data files there is the option to load only the metadata and leave the raw channel data (the samples) unread; this of course will mean slower channel data access speed

  • extract channel data, master channel and extra channel information (unit, conversion rule)

  • remove channel by name

  • remove data group by specifing a channel name inside the target data group

  • append new channels

Benchmarks

using a more complex file of 170MB with 180 data groups and 36000 channels with Python 3.6.1 32bit

  • file load:
    • asammdf 1.0.0 : 1040ms

    • mdfreader 0.2.4 : 3986ms

  • file save:
    • asammdf 1.0.0 : 722ms

    • mdfreader 0.2.4 : 18800ms

  • get channel data (10000 calls):
    • asammdf 1.0.0 : 918ms

    • mdfreader 0.2.4 : 11ms

  • RAM usage with loaded raw channel data:
    • asammdf 1.0.0 : 280MB

    • mdfreader 0.2.4 : 441MB

  • RAM usage without loaded raw channel data:
    • asammdf 1.0.0 : 118MB

    • mdfreader 0.2.4 : 300MB

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

asammdf-1.0.1.tar.gz (17.5 kB view details)

Uploaded Source

File details

Details for the file asammdf-1.0.1.tar.gz.

File metadata

  • Download URL: asammdf-1.0.1.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for asammdf-1.0.1.tar.gz
Algorithm Hash digest
SHA256 27cb68afc8d79ae3a4bbbdeb2c710282ece0d4315a97edf4fadaff93048faf8f
MD5 dabe3b1181696825968ca3948753f690
BLAKE2b-256 39c9d8ef446eefe8b1f31f118f81aa9da878cbfffba851d2f769d623858a16ca

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