Skip to content

Commit 15570a0

Browse files
committed
Update library to 0.5.0, update workflows
1 parent b322ef3 commit 15570a0

22 files changed

+194
-236
lines changed

.bonsai/Bonsai.config

Lines changed: 0 additions & 115 deletions
This file was deleted.

.bonsai/NuGet.config

Lines changed: 0 additions & 8 deletions
This file was deleted.

.bonsai/Setup.cmd

Lines changed: 0 additions & 4 deletions
This file was deleted.

.bonsai/Setup.ps1

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/DocLinkChecker.config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
],
88
"Exclude": [
99
"_site/*",
10-
".bonsai/*",
1110
"src/*"
1211
]
1312
},

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
run: dotnet tool restore
3333

3434
- name: Setup Bonsai
35-
working-directory: .bonsai
35+
working-directory: src\bonsai-onix1\.bonsai
3636
run: .\Setup.ps1
3737

3838
- name: Build Documentation

.gitignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,12 @@ _*/
1616
Packages
1717

1818
## Lychee cache
19-
.lycheecache
19+
.lycheecache
20+
21+
## Bonsai v2.9.0 saves editor/layout files here
22+
**/.bonsai/Settings/*
23+
24+
## Saved files from example workflows
25+
**/*.bin
26+
**/*.raw
27+
**/*.csv

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ Download and install [git](https://git-scm.com/downloads) if it is not installed
4343
even after installing .NET as described previously in the readme, refer to [this comment](https://github.com/dotnet/core/issues/6095#issuecomment-809006602) for a potential fix. If you follow the instructions described in the comment, make sure you proceed in a terminal or command prompt opened after changing the environment variables.
4444
1. Set up a local Bonsai environment for automatically exporting SVGs, run Setup.ps1 in PowerShell (or, if not using PowerShell, run Setup.Cmd):
4545
``` console
46-
./.bonsai/Setup.ps1
47-
```
46+
cd .\src\bonsai-onix1\.bonsai\
47+
./Setup.ps1
48+
```
4849
If the above command yields the following error:
4950
``` console
5051
./Setup.ps1 : File C:\Users\User\...\bonsai-onix1-docs\Setup.ps1 cannot be loaded because running scripts is

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ dotnet build $libPath --configuration Release
44

55
# Export workflow vectors
66
$libPath = Join-Path $libPath "artifacts\bin\OpenEphys.Onix1\release"
7-
.\docfx-tools\modules\Export-Image.ps1 -bootstrapperPath .\.bonsai\Bonsai.exe $libPath
7+
.\docfx-tools\modules\Export-Image.ps1 -bootstrapperPath .\src\bonsai-onix1\.bonsai\Bonsai.exe $libPath
88
dotnet docfx @args

src/bonsai-onix1

Submodule bonsai-onix1 updated 72 files

workflows/hardware/hs64/estim.bonsai

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<WorkflowBuilder Version="2.8.5"
2+
<WorkflowBuilder Version="2.9.0"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xmlns:onix1="clr-namespace:OpenEphys.Onix1;assembly=OpenEphys.Onix1"
5+
xmlns:rx="clr-namespace:Bonsai.Reactive;assembly=Bonsai.Core"
56
xmlns="https://bonsai-rx.org/2018/workflow">
67
<Workflow>
78
<Nodes>
@@ -18,6 +19,9 @@
1819
<Value>Triangle</Value>
1920
</Operand>
2021
</Expression>
22+
<Expression xsi:type="Combinator">
23+
<Combinator xsi:type="rx:DistinctUntilChanged" />
24+
</Expression>
2125
<Expression xsi:type="Combinator">
2226
<Combinator xsi:type="onix1:Headstage64ElectricalStimulatorTrigger">
2327
<onix1:DeviceName>Headstage64/Headstage64ElectricalStimulator</onix1:DeviceName>
@@ -32,15 +36,16 @@
3236
<onix1:PhaseTwoDuration>200</onix1:PhaseTwoDuration>
3337
<onix1:InterPulseInterval>400</onix1:InterPulseInterval>
3438
<onix1:InterBurstInterval>0</onix1:InterBurstInterval>
35-
<onix1:BurstPulseCount>0</onix1:BurstPulseCount>
36-
<onix1:TrainBurstCount>0</onix1:TrainBurstCount>
39+
<onix1:BurstPulseCount>5</onix1:BurstPulseCount>
40+
<onix1:TrainBurstCount>1</onix1:TrainBurstCount>
3741
</Combinator>
3842
</Expression>
3943
</Nodes>
4044
<Edges>
4145
<Edge From="0" To="1" Label="Source1" />
4246
<Edge From="1" To="2" Label="Source1" />
4347
<Edge From="2" To="3" Label="Source1" />
48+
<Edge From="3" To="4" Label="Source1" />
4449
</Edges>
4550
</Workflow>
4651
</WorkflowBuilder>

0 commit comments

Comments
 (0)