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

Documentation

http://asammdf.readthedocs.io/en/latest/

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.1.0 : 950ms

    • asammdf 1.1.0 with compression : 1600s

    • asammdf 1.1.0 without loading raw channel data: 750ms

    • mdfreader 0.2.4 : 3600ms

    • mdfreader 0.2.4 without channel conversion : 3330ms

  • file save:
    • asammdf 1.1.0 : 722ms

    • mdfreader 0.2.4 : 18800ms

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

    • mdfreader 0.2.4 : 11ms

  • RAM usage:
    • asammdf 1.1.0 : 345MB

    • asammdf 1.1.0 with compression : 280MB

    • asammdf 1.1.0 without loading raw channel data: 150MB

    • mdfreader 0.2.4 : 480MB

    • mdfreader 0.2.4 without channel conversion: 365MB

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for asammdf-1.1.0.tar.gz
Algorithm Hash digest
SHA256 ee80f204634e234aaaf3d16fc76ff9cf279867618c8f94bd88ed486389ebaa67
MD5 7fedc18ab92db7ecddccaade486d9d79
BLAKE2b-256 13c2988986ed1ea61c7c47c13f1fc549c15d3ba1474d51e00b23cfb71e6bac72

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