question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

make_fixed_length_epochs() should allow for custom specification of the event ID

See original GitHub issue

Currently, make_fixed_length_epochs() assigns all events the ID 1.

make_fixed_length_events(), on the other hand, already supports user-defined IDs.

It would be good to add a parameter to make_fixed_length_epochs(), allowing users to pass a custom event ID.

This was brought up on the forum, https://mne.discourse.group/t/fixed-epochs-and-fixed-events/3702

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
mscheltiennecommented, Sep 27, 2021

@hoechenberger Not sure either about the issue encountered by OP on discourse. I was ticking on:

I have different events with different lengths of time. I want to make each second of each event as an epoch for classification purposes later.

For me, my description above is not really an issue. I can think of one or 2 different ways to do it, and your proposition would work like a charm. I was wondering if this scenario was encountered often, especially in online paradigms or in paradigms that have an alternation of long phases; in which case, a specific function to create this type of fixed-length epochs could be a good addition to MNE. As OP wrote on Discourse:

Any suggestion that makes my life easier?


Anyway, that said, and since I polluted a bit too much the discussion feed of this issue, I’ll add the additional parameter to make_fixed_length_epochs() to change the event ID; at least this small upgrade won’t be left out because of my post 😉

0reactions
hoechenbergercommented, Sep 29, 2021

Closed via #9782

Read more comments on GitHub >

github_iconTop Results From Across the Web

mne.Epochs — MNE 1.2.2 documentation - MNE-Python
Reject epochs based on maximum peak-to-peak signal amplitude (PTP), i.e. the absolute difference between the lowest and the highest signal value ...
Read more >
Pendo Help Center
Returns the id for the visitor currently being applied to any events being sent to Pendo. Will always be set either by host...
Read more >
Apache Beam Programming Guide
Apache Beam Programming Guide. The Beam Programming Guide is intended for Beam users who want to use the Beam SDKs to create data...
Read more >
Clusters API 2.0 | Databricks on AWS
The maximum allowed size of a request to the Clusters API is 10MB. Cluster lifecycle methods require a cluster ID, which is returned...
Read more >
Client-Server API - Matrix Specification
The client-server API allows clients to send messages, control rooms and synchronise ... Error codes defined by this specification should start M_ ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found