Coder Social home page Coder Social logo

pymdfreader's Introduction

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

pymdfreader's People

Contributors

eelcovv avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.