running-simulations
How to run a SimulationExperiment in TVBO — choosing a backend, calling run/plot, and what each optional extra (jax, tvb, pyrates, julia) provides.
Skill by virtual-twin
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/virtual-twin-running-simulations
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/running-simulations
What's inside
- Skill name
running-simulations- Description
- How to run a SimulationExperiment in TVBO — choosing a backend, calling run/plot, and what each optional extra (jax, tvb, pyrates, julia) provides.
- License
- EUPL-1.2
- Instructions
- 81 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Running Simulations
Once you have a `Dynamics` (see the `writing-models` skill), wrap it in a `SimulationExperiment` and run it.
## The quick path
```python
from tvbo import Dynamics, SimulationExperiment
experiment = SimulationExperiment(dynamics=my_dynamics)
experiment.run(duration=1000).plot()
```
`run()` returns a result container; `plot()` is built-in. For details see `tvbo/run/`, `tvbo/plot/`, `tvbo/analysis/`.
## Declarative sourcing: inline vs YAML vs IRI
TVBO is declarative about **where each component comes from**. A
`SimulationExperiment` section is always one of:
1. **Fully inline** — a Python instance or a dict containing every field.
2. **From YAML** — `SimulationExperiment.from_file(...)` / `from_string(...)`.
3. **Semantic pointer** — a dict with an `iri` CURIE. The prefix selects the
source (`tvbo:` for the built-in ontology; in principle other prefixes
like `neuroml:` can resolve from other sources); remaining fields are
backfilled from that source.
A bare name string is not a semantic pointer — it has no prefix, so the
resolver cannot tell which source to query. Use the `iri` form:
```python
exp = SimulationExperiment(
dynamics={"name": "ReducedWongWang", "iri": "tvbo:ReducedWongWangExcInh"},
coupling={"name": "Linear", "iri": "tvbo:Linear"},
network={
"parcellation": {"atlas": {"name": "DesikanKilliany",
"iri": "tvbo:DesikanKilliany"}},
"tractogram": {"name": "dTOR", "iri": "tvbo:dTOR"},
},
integration={"method": "Heun", "duration": 10_000, "noise": None},
)
```
`coupling` additionally accepts a bare string as a `tvbo:`-prefixed shorthand,
but prefer the explicit `iri` form for clarity and to avoid coupling docs to
the default namespace.
## Picking a backend
The default backend is JAX. Switch via `render_code('<backend>')` for export, or pass `backend=...` to `SimulationExperiment`.
| Backend | Extras to install | Use when |
|---------|------------------|----------|
| `jax` | `pip install tvbo[jax]` (already in core) | Default; differentiable; fast on GPU/TPU |
| `tvb` | `pip install tvbo[tvb]` | You need TVB's curated set of neural-mass models |
| `pyrates` | `pip install tvbo[pyrates]` | Rate-coded brain network models + numerical continuation |
| `julia` | `pip install tvbo[julia]` | DifferentialEquations.jl, ModelingToolkit, NetworkDynamics |
| `neuroml` | `pip install tvbo[neuroml]` | Multi-compartment models via NEURON/LEMS |
| `tvboptim` | `pip install tvbo[tvboptim]` | JAX-based optimisation / parameter fitting |
## Render-only (no execution)
```python
code = experiment.render_code('jax')
print(code)
```
Useful for inspecting the generated code or running it outside TVBO.
## Studies
A `SimulationStudy` aggregates multiple experiments (e.g. parameter sweeps). See `tvbo/classes/study.py`.
## Pitfalls
- **Intel Mac**: TVBO pins `numba<0.60` and `llvmlite<0.44` on `darwin/x86_64`. JAX is pinned to `0.4.28` (last Intel-Mac release). If installation complains, check `pyproject.toml`'s platform conditionals.
- **TVB extra**: pulls `numba` transitively; the same Intel-Mac caps apply.
- **Julia extra**: requires a working Julia runtime. `juliacall` will download one on first import if absent.
- `--run-slow` is a *pytest* flag, not a TVBO option. It controls which tests run, not which simulations.From virtual-twin/tvbo, EUPL-1.2.
More from virtual-twin/tvbo
- 0.529score
writing-code
virtual-twin
Behavioral guidelines to reduce common LLM coding mistakes: think before coding, simplicity first, surgical changes, goal-driven execution.
SkillCFreshness: C★ 5Claude Code +9 - 0.529score
overview
virtual-twin
What TVBO is — the three pillars (LinkML datamodel, ontology, Python package) plus the Odoo platform.
SkillCFreshness: C★ 5Claude Code +9 - 0.529score
git
virtual-twin
Rules for git operations in TVBO.
SkillCFreshness: C★ 5Claude Code +9 - 0.526score
platform
virtual-twin
How to use the Odoo-based TVBO platform at tvbo.charite.de — retrieve curated knowledge, manage your account, share SimulationExperiments and Studies (public…
SkillCFreshness: C★ 5Claude Code +9 - 0.526score
writing-docstrings
virtual-twin
How to write Python docstrings in TVBO so that quartodoc renders them correctly in the API site.
SkillCFreshness: C★ 5Claude Code +9 - 0.526score
codegen-templates
virtual-twin
How TVBO's code generation works — template engines, backend dispatch in tvbo/codegen/, and the contract for adding a new backend.
SkillCFreshness: C★ 5Claude Code +9 - 0.526score
writing-models
virtual-twin
How to specify a Dynamics in TVBO — the YAML and Python forms, parameter / state-variable / equation conventions, and common pitfalls.
SkillCFreshness: C★ 5Claude Code +9 - 0.523score
linkml-schema
virtual-twin
How to edit the LinkML schema in schema/*.yaml and why tvbo/datamodel/** is generated and must never be hand-edited.
SkillCFreshness: C★ 5Claude Code +9 - 0.518score
Anti AI Slop Editor
virtual-twin
Ruthless editor who detects and destroys AI-generated slop — the hollow filler phrases, fake enthusiasm, recycled structures, and performative depth that make…
SkillCFreshness: C★ 5Claude Code +9 - 0.499score
grill-me
virtual-twin
Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree.
SkillCFreshness: C★ 5Claude Code +9 - 0.499score
grill-me
virtual-twin
Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree.
SkillCFreshness: C★ 5Claude Code +9 - 0.496score
tests-and-backends
virtual-twin
pytest marker conventions for backend-tagged tests in TVBO, the slow/julia markers, and how to run the test suite locally.
SkillCFreshness: C★ 5Claude Code +9
Signals
- Stars
- 5
- Forks
- 1
- Open issues
- 13
- Last commit (this folder)
- Jun 25, 2026 (4 months ago)
- Last release
- Jul 9, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- EUPL-1.2
- Repository
- github.com/virtual-twin/tvbo
- Website
- tvbo.charite.de
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from virtual-twin
- 0.529score
writing-code
virtual-twin
Behavioral guidelines to reduce common LLM coding mistakes: think before coding, simplicity first, surgical changes, goal-driven execution.
SkillCFreshness: C★ 5Claude Code +9 - 0.529score
overview
virtual-twin
What TVBO is — the three pillars (LinkML datamodel, ontology, Python package) plus the Odoo platform.
SkillCFreshness: C★ 5Claude Code +9 - 0.529score
git
virtual-twin
Rules for git operations in TVBO.
SkillCFreshness: C★ 5Claude Code +9 - 0.526score
platform
virtual-twin
How to use the Odoo-based TVBO platform at tvbo.charite.de — retrieve curated knowledge, manage your account, share SimulationExperiments and Studies (public…
SkillCFreshness: C★ 5Claude Code +9 - 0.526score
writing-docstrings
virtual-twin
How to write Python docstrings in TVBO so that quartodoc renders them correctly in the API site.
SkillCFreshness: C★ 5Claude Code +9 - 0.526score
codegen-templates
virtual-twin
How TVBO's code generation works — template engines, backend dispatch in tvbo/codegen/, and the contract for adding a new backend.
SkillCFreshness: C★ 5Claude Code +9
Cite this page
running-simulations skill. Agent Mart. https://agentmart.dev/skills/virtual-twin-running-simulations (last updated 2026-10-24)