ratal / mdfreader

Read Measurement Data Format (MDF) versions 3.x and 4.x file formats in python
Other
169 stars 74 forks source link

Feature Request: Make new MDF. Used for xlsx to MDF #162

Closed Mark0ne closed 4 years ago

Mark0ne commented 5 years ago

Python version

3.7.2

Description

Is this already possible? If not, is it a relatively easy addition? I'd like to be able to enode a new MDF file and populate it with signals from another source (in my case, Excel).

Thanks

ratal commented 5 years ago

Theoritically, possible. But maybe not so well documented. How I would see it: Mostly use MdfSkeleton class. After import of mdfreader and your data (in pandas or openpyxl ?) yop=mdfreader.Mdf() yop.add_channel(channel_name, data, master_channel, master_type, unit='lumen', description='what you want') # many times as needed yop.write('filename') # change version with yop.MDFVersionNumber or specifically use write3/4() Tell if you find issues

ratal commented 4 years ago

Seems it went well ? closing considering the time

Mark0ne commented 4 years ago

Yes, thanks, it worked. Many thanks for the suggestion