Putting It Together¶
Once you have sampled the individual demos, combine them into a workflow that fits your project.
Pick modules as needed¶
Model baselines → tuning – Start with the 1D/2D CANN demos in CANN Network Examples, then revisit the Hopfield examples in Hebbian Memory Examples to observe Hebbian effects before and after training.
Real trajectories → pipelines – Import recordings with Tasks and Navigation Examples (see import_external_trajectory.py), store them as
.npz, and feed them into the theta-sweep pipeline in Theta Sweep Pipeline Examples.Experimental validation – Compare pipeline outputs against the ROI/TDA analyses in Experimental Analysis Examples to confirm that simulated and recorded data share the same structure.
Rapid prototyping checklist¶
Copy a template – Duplicate the closest example into
examples/your_topic/.Adjust configuration –
Modify
PlotConfigs/ThetaSweepPipelinedictionaries for new visual outputs.Pass overrides on the command line via
uv run pythonand--helpif the script exposes arguments.
Record artefacts – Print or log the generated file paths so downstream automation can pick them up.
Common pitfalls¶
Slow animations – Reduce
time_steps_per_secondorfps. On headless servers installimageio[ffmpeg]for faster encoding.Missing dependencies –
ModuleNotFoundErrormeans you shoulduv add <package>. The earlier chapters list the extra packages
you might need.
- Download hiccups – Place the required files manually or retry; the load_* helpers always check the local cache first.
Next steps¶
Add your own scripts and extend this guide so that every example has a matching doc entry.
When you open a PR, follow the pattern in docs/en/examples/index.rst (or mirror the structure used here).