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
.mf4files and save them to a.txtfile. - 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
asammdfpandasnumpy
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
- Varshith V Hegde
- Email: varshithvh@gmail.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mf4processor-2.0.1.tar.gz.
File metadata
- Download URL: mf4processor-2.0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54c60acd519291907be8b5419be88cc9110e3556d064089ba2127a8568b97639
|
|
| MD5 |
6ff8b340155a4b9e767a0e1fff4f6890
|
|
| BLAKE2b-256 |
e58f382314fbf837b7eba6c647fd6608dd23317c79335b0696d3c69bb4d71f46
|
File details
Details for the file mf4processor-2.0.1-py3-none-any.whl.
File metadata
- Download URL: mf4processor-2.0.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35741b7ef26968cc075af179a70984e299beb6911822a3b1d5a9b2a30a4a9bc7
|
|
| MD5 |
9aad9aa736b7f4e05c92b2c2681e8f3e
|
|
| BLAKE2b-256 |
e42b04b5139da5d02263e6f12ece044b7ce6fda22d225a24ddb0b422df99c5ad
|