Bug Description
In nstColl.m near line 1484, the getSpikeTimes() method initializes count=1 only inside a conditional if(i==1). If the neuron mask excludes neuron 1, the variable count is never initialized, leading to a runtime error when count is later referenced.
Expected Fix
Initialize count = 1 before the loop.
Found during comprehensive cross-toolbox audit. Python nSTAT-python avoids this via list comprehension.
Bug Description
In
nstColl.mnear line 1484, thegetSpikeTimes()method initializescount=1only inside a conditionalif(i==1). If the neuron mask excludes neuron 1, the variablecountis never initialized, leading to a runtime error whencountis later referenced.Expected Fix
Initialize
count = 1before the loop.Found during comprehensive cross-toolbox audit. Python nSTAT-python avoids this via list comprehension.