Skip to content

init_states broken #698

@jnsbck

Description

@jnsbck

The following returns a KeyError: '[3] not in index'

cell = jx.Cell(jx.Branch(ncomp=1), parents=[-1, 0, 0])

net = jx.Network([cell]*2)
net.insert(Leak())

pre_loc = net.cell(0).branch(0).loc(0.5)
post_loc = net.cell(1).branch(0).loc(0.5)

connect(pre_loc, post_loc, IonotropicSynapse())

net.init_states() # BREAKS!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions