While going through the BonVision docs to reproduce the examples I noticed this bug which seems to have only popped up recently when using the latest versions of Bonsai (I tested it in Bonsai 2.8.0 and 2.8.3). The trials specified in GratingSpecification does not get passed on to CreateGratingTrial, GratingSequence simply reproduces what is defined in CreateGratingTrial .
To reproduce, follow the first example on this page
https://bonvision.github.io/pages/08-GratingSeries/
This issue is also referenced in
https://github.com/orgs/bonsai-rx/discussions/1684
The 2AFC demo in Bonvision examples repo no longer works because of this
https://github.com/bonvision/examples/tree/master/Demos/OriDiscrimination
Workflow attached that reproduces this bug:
grating-stimuli.zip