I have mdf files that have the names of some channels in a different language. I want to rename those channels in English. I've tried to do so, but there doesn't seem to be any renaming function in the documentation. Another option could be to copy the signal with a separate name, but that creates a new group with that new signal inside. The group names are not consistent throughout these files so I can't just send each new channel to the correct group.
There is no dedicated function for this, but you can use this snippet to change the names and save the file:
from asammdf import MDF
mdf = MDF(filename)
for group in mdf.groups:
for channel in group.channels:
channel.name = translation_function(channel.name)
mdf.save("translated.mf4")