Skip to content

Allow zero values for numChans and SR in neuropixelsGLX reader#94

Merged
stevevanhooser merged 1 commit intomainfrom
claude/fix-neuropixels-numchans-KYDyN
Apr 7, 2026
Merged

Allow zero values for numChans and SR in neuropixelsGLX reader#94
stevevanhooser merged 1 commit intomainfrom
claude/fix-neuropixels-numchans-KYDyN

Conversation

@stevevanhooser
Copy link
Copy Markdown
Contributor

Summary

Updated input validation for the neuropixelsGLX reader to allow zero as a valid value for numChans and SR parameters.

Changes

  • Changed numChans validation from mustBePositive to mustBeNonnegative, allowing 0 as a valid input
  • Changed SR validation from mustBePositive to mustBeNonnegative, allowing 0 as a valid input

Details

These parameters previously required strictly positive values (> 0), but the default value of 0 suggests that zero should be a valid input state. This change aligns the validation constraints with the intended default behavior, allowing users to pass 0 to indicate that these parameters should use default or auto-detected values.

https://claude.ai/code/session_01GQqT3LvvCKZ7tm7TCphrL1

…h mustBePositive

The argument validators mustBePositive reject the sentinel default value of 0
used to indicate "read from .meta file". Changed to mustBeNonnegative so 0 is
accepted as a valid default while still rejecting negative values.

https://claude.ai/code/session_01GQqT3LvvCKZ7tm7TCphrL1
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2026

Test Results

108 tests  ±0   108 ✅ ±0   5s ⏱️ -1s
 13 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit fb544df. ± Comparison against base commit b91defd.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 30.73%. Comparing base (b91defd) to head (fb544df).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #94   +/-   ##
=======================================
  Coverage   30.73%   30.73%           
=======================================
  Files          92       92           
  Lines        4578     4578           
=======================================
  Hits         1407     1407           
  Misses       3171     3171           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@stevevanhooser stevevanhooser merged commit 24f8664 into main Apr 7, 2026
5 checks passed
@stevevanhooser stevevanhooser deleted the claude/fix-neuropixels-numchans-KYDyN branch April 7, 2026 00:31
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