-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Python 2.7 leftovers #270
Conversation
I think #265 should also fall under this |
201cd0b
to
9d95c22
Compare
9d95c22
to
73cca1c
Compare
b4b706c
to
7eaa773
Compare
7eaa773
to
7f41aaa
Compare
Looks good, I made some small adjustements
|
See my comment #270 (comment) above about In short, it must be made clear whether the ASCII header fields are stored as |
@@ -753,7 +753,7 @@ def drop_channels( | |||
if isinstance(ch,str): | |||
ch_idx = ch_names.index(ch.lower()) | |||
to_keep[i] = ch_idx | |||
load_channels = to_keep.copy() | |||
load_channels = list(to_keep) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to_keep
is already a list, and to_keep.copy()
is more readable. Why revert?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be a numpy array as well, so convert to list just to be safe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's supposed to be a list
. Why would it be a Numpy array?
Fixes #265.