How to read the code labels of EGI .mff files?

,

I鈥檝e saved a .mff file from EGI and I want to read it via mne=0.23.4 on Python=3.6.8 and Windows 10.

There鈥檚 a CELL channel in my data that has 4 possible string labels, as in the data.mff/Events_ECI TCP-IP 55513.xml file:

<event>

        <beginTime>2021-12-11T11:48:54.307555+08:00</beginTime>

        <duration>1000</duration>

        <code>CELL</code>

        <label>label1</label>

        ....

    </event>

    <event>

        <beginTime>2021-12-11T11:48:54.322555+08:00</beginTime>

        <duration>1000</duration>

        <code>CELL</code>

        <label>label2</label>

       ....
    </event>

I want to get those labels in my python code but after I run

raw = mne.io.read_raw_egi("data.mff")

I came across two problems:

  • I can find the CELL channel but there are only 2 possible values (0 or 2), but I suppose it should have 4 values if this value corresponds to the code labels.
  • There are only numeric values but I want the labels in string.

looks like the discussion of this has moved over to GitHub: Read Net Stations' ECI events information 路 Issue #10121 路 mne-tools/mne-python 路 GitHub

Yes, thanks for your reply. I鈥檝e solved this and I鈥檇 like to PR my code and continue this discussion in GitHub if necessary.