You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I tried to parse a file with a single channel containing a XY-dataset. This means it contains a component group with two components one for the xdata (here a timestamp in seconds) and one for the ydata (here without unit).
It looks like the library does not parse multiple components properly, meaning it can only open timestamped ASCI and normal datasets. When having multiple components in one group the xdata is still filled via the xstepwidth from the CD key which is not applicable in this case.
I am using version 2.0.20 with python 3.11 on linux.
I am willing to create a PR but I am wondering how we can determine which blocks belong together. Because for parsing the xdata in the same way as the ydata for XY-datasets we have to make sure we have to corresponding CC, CP, CD, NT, CR, CN and Cb keys. Does this require a change in channel parsing? Maybe by adding component group and component vectors to represent the right structure?
Best regards,
Jan
The text was updated successfully, but these errors were encountered:
thanks for using the package and creating the issue!
You're welcome to provide a PR to support XY data. To do this you have to collect all CC keys/blocks associated to the preceding CG block. For instance, in your example XY_dataset_example.dat the |CG,1,5,2,2,2; block features 2 CC blocks (first 2) and the field type 2 (second 2) corresponding to XY data with multiple y-datasets with a common x-timedataset. Listing all blocks associated to a group is done here and ff.
Hi,
I tried to parse a file with a single channel containing a XY-dataset. This means it contains a component group with two components one for the xdata (here a timestamp in seconds) and one for the ydata (here without unit).
It looks like the library does not parse multiple components properly, meaning it can only open
timestamped ASCI
andnormal datasets
. When having multiple components in one group the xdata is still filled via thexstepwidth
from theCD
key which is not applicable in this case.IMCtermite/lib/imc_channel.hpp
Lines 478 to 482 in befda07
Steps to reproduce:
XY_dataset_example.zip
I am using
version 2.0.20
withpython 3.11
on linux.I am willing to create a PR but I am wondering how we can determine which blocks belong together. Because for parsing the xdata in the same way as the ydata for XY-datasets we have to make sure we have to corresponding
CC
,CP
,CD
,NT
,CR
,CN
andCb
keys. Does this require a change in channel parsing? Maybe by adding component group and component vectors to represent the right structure?Best regards,
Jan
The text was updated successfully, but these errors were encountered: