Replies: 3 comments 4 replies
-
The data extracted from the file using get, select, to_dataframe is always decoupled from the file. The only way to have your changes preserved is to create a new file and append the altered signals to it.
|
Beta Was this translation helpful? Give feedback.
-
Too sad, because the input file is quite large (between 500MB and 3-4GB) and I have to substitue only very few values in the samples of 1 or channels. The overhead to copy the whole file except the one or two modified channels and then to append the respective channels seems way too high to me for this task. That's why I prefered to get just something like a pointer to the channel data, modify the content and then rewrite the file. Btw. the option to select certain channels at reading time like MDF(filename, channels=["channel_name"]) doesnt seem to work correctly in my case or I am doing it not the right way? Meaning that the signal is selected and the only channel inside the mdf object, but I have all the time channels from all channel groups of the original input file. Thx, Roland |
Beta Was this translation helpful? Give feedback.
-
The way the samples are stored make this very complicated, especially if the data blocks are compressed. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm working with mf4 files and want to do some data cleaning. For this purpose I would like to read the timestamps and sample values of some channel, do the magic and set them back to the respective channel and rewrite the mf4 file. But the internal structure of the mf4 file should kept unchanged.
I thougt the easiest way would be not to copy the arrays but have all changes to the signal immediately also in the file and so I'm struggling with something like MDF(filename, copy_on_get=False) which I supposed to return something like a pointer instead of a copy to the actual data. But I cannot figure out any different behaviour if I use True or False for this keyword.
Could please anybody give me a hint what I am missing to get it right?
thx, Roland
Beta Was this translation helpful? Give feedback.
All reactions