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

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

Uploaded Source

Built Distribution

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

mf4processor-1.0.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mf4processor-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a44520f627cae8568cab3031e833f4310cecbee5ebfbfc267ed1f51019362298
MD5 0a44454678107a6949a35c3ec51596a5
BLAKE2b-256 4f3d67ba87ec3a5e592b264ad314676ce14eb59ac93d5a3ac2191ddccb37c001

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mf4processor-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 91a142e11eef25394849c51d2c9ea0aa4ef6c110900546bccf9dc7c572134279
MD5 0ad12e99423109c6be521cbdc57e6075
BLAKE2b-256 c0a6a524e67cd2dc76eb16234a5c3cd5d5eebcac6d00c21d2832100d575131e8

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