msel-source / pymef

Python wrapper for MEF library
Other
5 stars 3 forks source link

Update on write_mef_ts_data_and_indices function #29

Closed MaxvandenBoom closed 2 years ago

MaxvandenBoom commented 2 years ago

Hey Dan,

I was working with the write_mef_ts_data_and_indices function and saw that there were improvements possible (which are in my code as well). Mainly, the uh pointer variable is used to point to the universal-headers of multiple files (generic fps, data-file fps and index-file fps), making the code difficult to follow and prone to errors. I simplified and corrected some empty operations:

I tested the code so it should be good.

Best, Max

cimbi commented 2 years ago

agreed. I am working on PyMED now and I see a lot of improvements for PyMEF too. I came across the ones you mentioned a few days ago. Also it does not make sense to separate the functions for metadata, data and indices writing. Happy to merge this