support negative times for CTF files
まだ誰も着手していません。
評価
調査の方向性
リンク先の mne/io/ctf/res4.py にある CTF フィールドの処理から始め、次に mne/io/ctf/ctf.py の annotation と bad_segments の調整を確認してください。baseline 期間が raw の時間値とイベントのアラインメントにどのような影響を与えるかを追跡してください。CTF 録音で開始時刻が負の場合でも、一貫した時間配列、アノテーション、bad_segments、イベントが維持されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
So I didn't know this but it seems like CTF has the ability to start its recordings with negative times by using a sync trigger and asking the scanner to include a baseline period.
Other packages Brainstorm (and presumably fieldtrip) respect this field and adjust their time arrays accordingly.
MNE reads in the required field
https://github.com/mne-tools/mne-python/blob/855edbf48835bcee80e773eb7047d0a4caa14a1c/mne/io/ctf/res4.py#L126
and adjusts annotations and bad_segments to account for it.
https://github.com/mne-tools/mne-python/blob/855edbf48835bcee80e773eb7047d0a4caa14a1c/mne/io/ctf/ctf.py#L147-L156
That MNE shifts other stuff and not the time array leads me to believe that MNE can't have negative time values in raw objects. Is that true?
This cropped up because I was doing some custom event marking for an experiment using mne and the resulting events were read into brainstorm and were all shifted by 1 second. In this particular case, I'm time shifting the events before I save them out, solving my immediate issue but it still seems a bit like a bug?
-Luke
- 主要言語
- Python
- スター
- 3.5k
- フォーク
- 1.6k
- 平均マージ
- 1日 6時間
- マージ済み PR(30日)
- 100
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
mne-tools/mne-python のほかの issue
-
ENH
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
mne-tools/mne-python#13743 · コメント 2 件 ·
-
ENH
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
mne-tools/mne-python#14318 ·
-
BUG
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
mne-tools/mne-python#14317 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
mne-tools/mne-python#14311 · コメント 1 件 · リアクション 1 件 ·
-
ENH
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
mne-tools/mne-python#14309 · コメント 1 件 ·
mne-tools/mne-python の issue をすべて見る
似ている issue
-
area/auth bug comp/agent P3 platform/discord type/security
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
NousResearch/hermes-agent#117848 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
bancolombia/sentinel#23 ·
-
test md オープンCI
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
langchain-ai/deepagents#6450 ·
-
bug client
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100