Skip to content

[pick.py] changed checking for int to include int64 - #5978

Merged
larsoner merged 3 commits into
mne-tools:masterfrom
skjerns:patch-2
Feb 21, 2019
Merged

larsoner merged 3 commits into
mne-tools:masterfrom
skjerns:patch-2

Conversation

@skjerns

@skjerns skjerns commented Feb 21, 2019 •

Copy link
Copy Markdown
Contributor

Reference issue

Fixes #5977

What does this implement/fix?

Many numpy functions return int64.
The picks-routine should accept all kind of ints

instead of

array.dtype!=np.int

I implemented

array.dtype.kind not in ['i', 'u']

which checks for any kind of integer

@codecov

codecov Bot commented Feb 21, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #5978 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #5978      +/-   ##
==========================================
+ Coverage   88.82%   88.83%   +<.01%     
==========================================
  Files         401      401              
  Lines       72839    72840       +1     
  Branches    12172    12172              
==========================================
+ Hits        64702    64705       +3     
+ Misses       5216     5214       -2     
  Partials     2921     2921

Comment thread mne/io/pick.py Resolved
@larsoner
larsoner merged commit 2c659d5 into mne-tools:master Feb 21, 2019
@larsoner

Copy link
Copy Markdown
Member

Thanks @skjerns

jeythekey pushed a commit to jeythekey/mne-python that referenced this pull request Apr 27, 2019
* changed checking for int to include int64

* Update pick.py

* added explicit type casting to int
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.

raw.get_data() should accept int64

4 participants