Skip to main content

A Python library for processing MF4 files

Project description

MF4Processor

MF4Processor is a Python library for working with .mf4 files, enabling you to extract channel names, convert specific channel data into CSV format, and retrieve signal data as NumPy arrays.


Features

  • Extract all channel names from .mf4 files and save them to a .txt file.
  • Convert a specific channel's signal data to a CSV file.
  • Retrieve signal data as a NumPy array for further analysis.

Installation

Install the library using pip:

pip install mf4processor

Usage

1. Import the Library

from mf4processor.processor import MF4Processor

2. Load an .mf4 File

processor = MF4Processor("path/to/your/file.mf4")

3. Save All Channel Names to a .txt File

processor.save_channel_names_to_txt("output_channels.txt")

4. Convert a Channel to CSV

processor.convert_channel_to_csv("Channel_Name", "output.csv")

5. Retrieve Signal Data as a NumPy Array

signal_data = processor.get_signal_as_numpy("Channel_Name")
print(signal_data)

Dependencies

  • asammdf
  • pandas
  • numpy

These dependencies are installed automatically with the library.


License

This project is licensed under the MIT License. See the LICENSE file for details.


Contributing

Contributions, issues, and feature requests are welcome! Feel free to open an issue on the GitHub repository.


Author


Replace varshithvhegde and varshithvh@gmail.com with your actual details before publishing!

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

mf4processor-2.0.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mf4processor-2.0.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file mf4processor-2.0.0.tar.gz.

File metadata

  • Download URL: mf4processor-2.0.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.6

File hashes

Hashes for mf4processor-2.0.0.tar.gz
Algorithm Hash digest
SHA256 718786bcf6465402fcaaf9a8e45d55da454a0ca3712962c6535b46fe8fe20ab3
MD5 7f0bfafe9ba46fc330e28cbe92eaf658
BLAKE2b-256 bef5550a157063530d7ae011349b0db464a4342fc341482362e61fa21944030a

See more details on using hashes here.

File details

Details for the file mf4processor-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: mf4processor-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.6

File hashes

Hashes for mf4processor-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 99b91de4e86f85504b396b0a64ff234fb6c75f64294cc33345e46627bff8afc7
MD5 b7062307d961dcf2dea724b2432fcd1f
BLAKE2b-256 3c9246bb46b09b28248210712274b726eaa681cd02a7e12b64d759e3e7d40beb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page