Skip to content

Conversion script

Paul Pfeiffer requested to merge conversion_script into master

Aim: Script to export a modDB model to a brian2 equations string.

Why: This might help if one wants a slick script with both model spec and simulation code such as in the brian2 example collection on the brian2 website. Also it allows to avoid adding brianutils as a dependency in a project which mainly wants to use a model from modDB, but none of the other functionalities in brianutils.

Details:

  • added a parameter substitute_parameters to the load_model function to prevent full substitution of the parameters. this results in a more readable model spec

Merge request reports

Loading