Skip to content

DynamicalSystem as a function #332

@chaoming0625

Description

@chaoming0625

Please:

  • Check for duplicate requests.
  • Describe your goal, and if possible provide a code snippet with a motivating example.

Currently, a DynamicalSystem should define update function which receive two arguments:

  • s: shared arguments
  • x: individual inputs

However, it is possible to call a DynamicalSystem as a function. Because shared arguments can be got through a global function like brainpy.math.get_current_step_data().

At each step, data for the next time step can be set through:

brainpy.math.set_current_step_data()

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions