Skip to content

Bug: nstColl.getSpikeTimes uninitialized count variable #21

@iahncajigas

Description

@iahncajigas

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions