Skip to content

Don't check srate for irregularly sampled streams#47

Merged
tstenner merged 3 commits intoxdf-modules:masterfrom
cbrnr:fix_warning_srate
Oct 7, 2019
Merged

Don't check srate for irregularly sampled streams#47
tstenner merged 3 commits intoxdf-modules:masterfrom
cbrnr:fix_warning_srate

Conversation

@cbrnr
Copy link
Copy Markdown
Contributor

@cbrnr cbrnr commented Oct 7, 2019

If stream.srate is zero, we divided by zero in the effective vs. nominal srate check. This check should only be run for regularly sampled streams (i.e. with stream.srate > 0).

Comment thread pyxdf/pyxdf.py Outdated
@cbrnr
Copy link
Copy Markdown
Contributor Author

cbrnr commented Oct 7, 2019

@tstenner feel free to merge if you're happy. I have another PR incoming that fixes more warnings, but I'd like to wait until this gets merged.

@tstenner tstenner merged commit f0636d3 into xdf-modules:master Oct 7, 2019
@cbrnr cbrnr deleted the fix_warning_srate branch October 7, 2019 13:27
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.

2 participants