add synthetic data source for running without trodes#10
Open
jl33-ai wants to merge 1 commit into
Open
Conversation
lets you run the pipeline end to end without an acquisition rig. useful for smoke testing a fresh install, working on a laptop, and CI. - realtime_decoder/synthetic.py: SyntheticDataReceiver and SyntheticClient that match the surface of TrodesDataReceiver and TrodesClient. drop in replacements. non-blocking __next__ semantics so the polling loops in encoder/decoder/ripple work unchanged. - runscript.py picks the data source via config['datasource']. defaults to 'trodes' so every existing config keeps working. - config/demo_synthetic.yml is a 5 rank demo wired to the synthetic source. - README adds a 'running without acquisition hardware' section. spikes are poisson, marks gaussian, position walks a triangle wave along a single segment. not biologically realistic, the point is to exercise the data path and message plumbing. to try it: mpiexec -np 5 python -u runscript.py config/demo_synthetic.yml
This was referenced May 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
right now the only way to run the pipeline is against a live Trodes acquisition. that gate makes a few useful things harder than they need to be:
this PR adds an in-process synthetic data source so the whole MPI pipeline can run without any hardware.
realtime_decoder/synthetic.pySyntheticDataReceiveris a drop-in forTrodesDataReceiver. emits poisson spikes per ntrode, white-ish LFP, and a triangle-wave position walk along a single linear segment. non-blocking__next__semantics so the polling main loops in encoder/decoder/ripple work unchanged.SyntheticClientis a drop-in forTrodesClient. same surface used by the supervisor and stim decider. fires startup/termination callbacks on wall-clock timers and records would-be ECU shortcut messages instead of sending them.runscript.pypicks the data source viaconfig['datasource']('trodes' default, 'synthetic' new) using a small factory. no change for existing configs.config/demo_synthetic.ymlis a 5 rank demo wired to the synthetic source (1 supervisor, 1 ripples, 1 encoder, 1 decoder, 1 gui). output to/tmp, no hardware paths, auto-terminates after 30s.README.mdadds a 'running without acquisition hardware' section so the install-and-try path is discoverable.caveat: not biologically realistic. spikes are poisson, marks gaussian, the synthetic animal walks back and forth on one segment. the point is to exercise the plumbing, not to validate decoding accuracy. the stim decider's ECU shortcut messages become no-ops in synthetic mode, which is intentional for a demo.
to try it: