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

allow more adc channels than dac channels #122

Merged
merged 13 commits into from
Jul 19, 2021
Merged

Conversation

pnewstein
Copy link
Contributor

Fixes #121 but causes abf.sweepUnisC, abf.sweepLabelC, and abf.sweepEpochs to be undefined in some cases.

these ABFs are not related to this PR and have bad headers which contain binary data

this commit revers them to their original state so they dont appear as modified by this PR
reverts to original behavior discussed in swharden#121/swharden#122
addresses swharden#121 where a hard crash would occur if an ABF were loaded with more ADC channels than DAC channels

If a channel name or units cannot be properly found, it uses None instead
prevents hard crashes when number of ADCs is greater than number of DACs swharden#121/swharden#122
@swharden swharden merged commit 19969f8 into swharden:master Jul 19, 2021
@swharden
Copy link
Owner

Thanks @pnewstein! This looks to be fixed now and I'll publish an update package on pypi here in a few minutes.

Thanks again for the bug report and the fix! 👍 🚀

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.

Fails to load files with more adc channels than dac channels
2 participants