From fb544df40eb980e1297beedde57228922b8f7de9 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 7 Apr 2026 00:28:40 +0000 Subject: [PATCH] Fix neuropixelsGLX.read error: numChans/SR default of 0 conflicts with 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 --- +ndr/+format/+neuropixelsGLX/read.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/+ndr/+format/+neuropixelsGLX/read.m b/+ndr/+format/+neuropixelsGLX/read.m index 35460fa..cadd301 100644 --- a/+ndr/+format/+neuropixelsGLX/read.m +++ b/+ndr/+format/+neuropixelsGLX/read.m @@ -44,8 +44,8 @@ binfilename (1,:) char {mustBeFile} t0 (1,1) double t1 (1,1) double - options.numChans (1,1) {mustBeInteger, mustBePositive} = 0 - options.SR (1,1) {mustBeNumeric, mustBePositive} = 0 + options.numChans (1,1) {mustBeInteger, mustBeNonnegative} = 0 + options.SR (1,1) {mustBeNumeric, mustBeNonnegative} = 0 options.channels (1,:) {mustBeNumeric, mustBeInteger, mustBePositive} = [] end