Skip to content

Conversation

@cbrnr
Copy link
Contributor

@cbrnr cbrnr commented Apr 12, 2021

Fixes #9271. The example file mentioned in #9271 contains only annotations and no signals. mne.io.read_raw_edf throws an error later in the pipeline. At least for this example file, record_length[0] == 0 is True, so I just extended the warning message there. I don't know if this catches all possible annotations-only cases, but I'd go with YAGNI for now.

@cbrnr cbrnr requested a review from agramfort April 12, 2021 14:21
@agramfort agramfort merged commit dcec6c6 into mne-tools:main Apr 12, 2021
@agramfort
Copy link
Member

thx @cbrnr

larsoner added a commit to agramfort/mne-python that referenced this pull request Apr 12, 2021
* upstream/main:
  MRG: Return empty list of SSP projectors if no ECG, EOG events were found (mne-tools#9277)
  Better warning message for EDF files with annotations only (mne-tools#9283)
  FIX: Link [ci skip]
  FIX: Prepare for PyVista 0.30.0 (mne-tools#9274)
  Use info for checking more NIRS metadata, not raw (mne-tools#9282)
  MRG: Use info for checking NIRS metadata, not raw (mne-tools#9280)
  Fix issue where set ylim parameter gets swapped across channel types in plot_evoked_topo (mne-tools#9207)
@cbrnr cbrnr deleted the edf-only-annotations branch April 13, 2021 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeError: ‘float’ object does not support item assignment

4 participants