Skip to content

Conversation

@larsoner
Copy link
Member

I added one commit on top of #5733 to show how things could pass (in theory) with stim_channel=None.

  • I had to mark two BDF tests xfail to get it there. @massich if we can get rid of those xfails, then we should be able to get rid of all of the stim_channel logic in edf.py like we did everywhere else.
  • One other thing is that we should probably deprecate find_edf_events, too. It shouldn't be needed anymore. Maybe we should put that in 0.17.1.
  • How come we don't do self.set_annotations(read_annotations(edf_path)) in RawEDF constructor? It would save a bunch of raw.set_annotations(read_annotations(edf_path)) lines in the tests and for users. In fact I was surprised when this did not just work:
    raw = read_raw_edf(path)
    events, event_id = events_from_annotations(raw)
    
    ... because I needed the raw.set_annotations(read_annotations(path)) line in there, too.

@larsoner
Copy link
Member Author

According to @cbrnr in #5738 this very well might not be the right approach.

@larsoner larsoner closed this Nov 21, 2018
@agramfort
Copy link
Member

agramfort commented Nov 21, 2018 via email

@massich
Copy link
Contributor

massich commented Nov 21, 2018 via email

@larsoner larsoner deleted the dep-edf branch April 2, 2020 18:25
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.

3 participants