Giter VIP home page Giter VIP logo

Comments (8)

dengemann avatar dengemann commented on August 28, 2024

... mhm, that's true. i did it so that the events get converted to keys. so restoring the names shouldn't be that difficult for the user. but to improve this, is there some field / corner in a fiff we could abuse for saving the mappings?

On 07.12.2012, at 18:40, Martin Luessi [email protected] wrote:

The dict features introduced in #229 are not compatible with saving to fiff in the sense that if you have an Epochs object with named events, save it, and load it again, the event names will be lost.


Reply to this email directly or view it on GitHub.

from mne-python.

agramfort avatar agramfort commented on August 28, 2024

you can use a comment field as for Evoked. And serialize the dict in a string eg.

"visual:3;auditory:1"

wdyt?

from mne-python.

agramfort avatar agramfort commented on August 28, 2024

not in comment but event_id tag or something...

from mne-python.

dengemann avatar dengemann commented on August 28, 2024

excellent! tha mapping could then be easily restored!

On 07.12.2012, at 19:02, Alexandre Gramfort [email protected] wrote:

you can use a comment field as for Evoked. And serialize the dict in a string eg.

"visual:3;auditory:1"

wdyt?


Reply to this email directly or view it on GitHub.

from mne-python.

dengemann avatar dengemann commented on August 28, 2024

@agramfort ... I don't find such a tag... and FIFF.FIFF_COMMENT is already used, as you implied. What about FIFF_DESCRIPTION?

from mne-python.

agramfort avatar agramfort commented on August 28, 2024

I would try writing a FIFF_DESCRIPTION tag in the FIFFB_MNE_EVENTS block.

from mne-python.

dengemann avatar dengemann commented on August 28, 2024

that's what i already prepared, let's see what it does ;-)

On 08.12.2012, at 14:50, Alexandre Gramfort [email protected] wrote:

I would try writing a FIFF_DESCRIPTION tag in the FIFFB_MNE_EVENTS block.


Reply to this email directly or view it on GitHub.

from mne-python.

dengemann avatar dengemann commented on August 28, 2024

I issued WIP #243 to fully support saving and reading the event_id. Closing this.

from mne-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.