Skip to main content

Read the binary MDF file format

Project description

A reader for Micro lab MDF files

Description

This module is used to read the micro lab MDF data files. An efficient mechanism is used to allow to make selection of data columns.

Example of usage:

Read a MDF file as a whole

import mdf_reader.mdf_parser as mdf
data_file = "example_data_file.mdf"

header_object = mdf.MDFParser(data_file)
header_object.data.info()

Read a selection of columns based on a filter

header_object = mdf.MDFParser(data_file, import_data=False)
header_object.set_column_selection(filter_list=["BALDER", "A[XYZ]"])
header_object.import_data()

Note that the data is stored in a pandas data frame ‘header_object.data’

Examples

Unit Test

In order to run the standard unit test do:

tox

Installation

To install the package run:

pip install pyMdfReader

In case you want to run all the examples in a virtual environment you can also do:

pip install pyMdfReader[examples]

which makes sure that a that also the package matplotlib, seaborn and jupyter are installed as well.

Making Changes & Contributing

This project uses pre-commit, please make sure to install it before making any changes:

pip install pre-commit
cd pyMdfReader
pre-commit install

It is a good idea to update the hooks to the latest version:

pre-commit autoupdate

Don’t forget to tell your contributors to also install and use pre-commit.

Note

This project has been set up using PyScaffold 4.5. For details and usage information on PyScaffold see https://pyscaffold.org/.

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

pymdfreader-0.1.5.tar.gz (17.9 MB view details)

Uploaded Source

Built Distribution

pyMdfReader-0.1.5-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file pymdfreader-0.1.5.tar.gz.

File metadata

  • Download URL: pymdfreader-0.1.5.tar.gz
  • Upload date:
  • Size: 17.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for pymdfreader-0.1.5.tar.gz
Algorithm Hash digest
SHA256 a74655dae7655dfa109a0aa03da06c0686ad3864d44439db7facc4b18cc568de
MD5 cf997b4a1301e27b8efe47956c659e42
BLAKE2b-256 4916845612ff837b8acf7b4190b6f1dd203c3090d180e9eb768e50392252c242

See more details on using hashes here.

File details

Details for the file pyMdfReader-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: pyMdfReader-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for pyMdfReader-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2510eb2e1e1d77efba61e2062bfec1c20c87cd04bf16653c74caf1317fcb636e
MD5 4f4085b4fc54b6174e66c10aeefe8fe5
BLAKE2b-256 5ddcdd7d42024084a318599934f2d227f6415c63fb85f582d5fc528c9187ede4

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