Skip to main content

pyMdfReader

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/.

Metadata

Release files for pyMdfReader 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyMdfReader 0.1.5
File Size Uploaded Provenance Actions
pymdfreader-0.1.5.tar.gz 17.9 MB Without provenance Details for pymdfreader-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyMdfReader 0.1.5
File Interpreter ABI Platform Actions
pyMdfReader-0.1.5-py3-none-any.whl Python 3 none any Details for pyMdfReader-0.1.5-py3-none-any.whl

Total release size: 17.9 MB

Release files / pymdfreader-0.1.5.tar.gz

Download URL pymdfreader-0.1.5.tar.gz
Size 17.9 MB
Tags Source
SHA-256 checksum
How to use checksums
a74655dae7655dfa109a0aa03da06c0686ad3864d44439db7facc4b18cc568de
BLAKE2b-256 checksum
How to use checksums
4916845612ff837b8acf7b4190b6f1dd203c3090d180e9eb768e50392252c242
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.12

Release files / pyMdfReader-0.1.5-py3-none-any.whl

Download URL pyMdfReader-0.1.5-py3-none-any.whl
Size 17.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2510eb2e1e1d77efba61e2062bfec1c20c87cd04bf16653c74caf1317fcb636e
BLAKE2b-256 checksum
How to use checksums
5ddcdd7d42024084a318599934f2d227f6415c63fb85f582d5fc528c9187ede4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.12

Security for pyMdfReader 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page