Skip to content
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

Update MNE compatibility to >0.17, fix bug with stimulus integer codes <length 3 in events #26

Merged
merged 6 commits into from
Jul 19, 2019

Conversation

sappelhoff
Copy link
Member

fixes #24

@sappelhoff sappelhoff changed the title Fixbv Update MNE compatibility to >0.17, fix bug with stimulus integer codes <length 3 in events Jul 18, 2019
@sappelhoff sappelhoff requested a review from choldgraf July 18, 2019 09:21
@codecov
Copy link

codecov bot commented Jul 18, 2019

Codecov Report

Merging #26 into master will increase coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #26      +/-   ##
==========================================
+ Coverage   94.84%   94.89%   +0.05%     
==========================================
  Files           3        3              
  Lines         194      196       +2     
==========================================
+ Hits          184      186       +2     
  Misses         10       10
Impacted Files Coverage Δ
pybv/io.py 92.3% <100%> (+0.05%) ⬆️
pybv/tests/test_bv_writer.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cf8aa9d...a0d2d52. Read the comment docs.

@codecov
Copy link

codecov bot commented Jul 18, 2019

Codecov Report

Merging #26 into master will increase coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #26      +/-   ##
==========================================
+ Coverage   94.84%   94.89%   +0.05%     
==========================================
  Files           3        3              
  Lines         194      196       +2     
==========================================
+ Hits          184      186       +2     
  Misses         10       10
Impacted Files Coverage Δ
pybv/tests/test_bv_writer.py 100% <100%> (ø) ⬆️
pybv/io.py 92.3% <100%> (+0.05%) ⬆️
pybv/__init__.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cf8aa9d...1baee69. Read the comment docs.

twidth = int(np.ceil(np.log10(np.max(events[:, 1]))))
twidth = twidth if twidth > 3 else 3
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what are the reasons that it would be greater than 3?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there are none (waiting for a reply by BrainProducts, whether this would even be supported)

but until we know for sure, I think it's better so only fix what is broken :-)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense to me - maybe we should add in a comment saying as much? I'm always nervous about adding in these kinds of lines where it's not explicit why "3" is the right number here. Right now we know this is the case, but I imagine a future where we look at this line of code and are like "why the hell did we cap it to 3?!"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good :-) fixed in 1baee69

@choldgraf choldgraf merged commit f6dc3dc into bids-standard:master Jul 19, 2019
@choldgraf
Copy link
Collaborator

nice - LGTM then :-)

@sappelhoff sappelhoff deleted the fixbv branch July 19, 2019 17:02
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.

Writing Events: Whitespace, Digit range, ... interaction with MNE-Python
2 participants