Skip to content

PoissonGroup cannot be used inside odeint / JointEq: TypeError & UnexpectedTracerError[BUG] #808

@ikeyhg

Description

@ikeyhg

Hi BrainPy developers,

First of all, thank you very much for developing BrainPy — it is a very powerful and elegant framework for computational neuroscience.

I am trying to implement a classical decision-making rate model (similar to Wang 2002 / Wong & Wang 2006), using:

  • bp.dyn.NeuDyn
  • bp.odeint(..., method='exp_auto')
  • bp.JointEq
  • Poisson noise input

However, I consistently run into errors when using PoissonGroup inside odeint.


Problem description

When PoissonGroup is used as an argument in ODE functions (e.g. noise-driven synaptic current), BrainPy/JAX raises errors such as:

TypeError: Cannot interpret value of type <class 'brainpy.dyn.others.input.PoissonGroup'> as an abstract array; it does not have a dtype attribute.

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