pwkalana9 / b-tk

Automatically exported from code.google.com/p/b-tk
0 stars 0 forks source link

New label are not exported in ASCII file #45

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Load an acquisition in Mokka 0.6
2. Modify a label
3. Export data in an ASCII file

What is the expected output? What do you see instead?
The ASCII file should contain the new label but instead this is the old one.

This problem is due to the use of a Qt "wrapper" around a btk::Acquisition 
object (give facilities for the undo/redo actions). However, the ASCII exporter 
uses only the btk::Acquisition object to export data.

Original issue reported on code.google.com by arnaud.barre on 7 Apr 2013 at 5:47

GoogleCodeExporter commented 8 years ago
Unfortunately, due to the way the data are stored in BTK and in the logic to 
reduce the memory used, this is not possible to fix this issue in Mokka 0.6.1.

In BTK 0.2, the timeseries data are directly stored as object in the class 
btk::Point and btk::Analog. As the modification of the internal 
btk::Acquisition object used in Mokka will reload all the 3D content, the idea 
is to use another btk::Acquisition object to the ASCII exporter. However, it is 
not convenient to clone the acquisition, especially if it contains lots of data.

The idea is to modify the API of BTK to access to the data as a pointer. 
However, this implies to modify deeply the code for the class btk::Measure, 
btk::Point, btk::Analog and the classes which used them. This modification will 
be done only in BTK 0.3 and then in Mokka 0.7. 

Original comment by arnaud.barre on 25 Apr 2013 at 8:08