Skip to content

Commit aed57e3

Browse files
committed
Merge branch 'main' into issue-121-socket
To merge-in the submodule pointer which fixes broken refs
2 parents 2690c1c + ef169fb commit aed57e3

20 files changed

+403
-377
lines changed

.gitmodules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[submodule "docfx-tools"]
22
path = docfx-tools
33
url = https://github.com/bonsai-rx/docfx-tools
4-
[submodule "src/onix-bonsai-onix1"]
5-
path = src/onix-bonsai-onix1
6-
url = https://github.com/open-ephys/onix-bonsai-onix1.git
4+
[submodule "src/bonsai-onix1"]
5+
path = src/bonsai-onix1
6+
url = https://github.com/open-ephys/bonsai-onix1.git

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
# Onix1 Bonsai Docs
55

6-
Documentation for the [Onix1 Bonsai package](https://github.com/open-ephys/onix-bonsai-onix1).
6+
Documentation for the [Onix1 Bonsai package](https://github.com/open-ephys/bonsai-onix1).
77

88
These docs are built using [docfx](https://dotnet.github.io/docfx/index.html).
99

articles/getting-started/install-configure-bonsai.md

Lines changed: 7 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ The Bonsai package manager can be accessed from Bonsai's landing window or its w
3838

3939
The following packages are required to run the workflows in this documentation are:
4040

41+
* `OpenEphys.Onix1.Design`: An extension of the `OpenEphys.Onix1` library that includes graphical user interfaces (GUIs). Installing OpenEphys.Onix1.Design automatically installs `OpenEphys.Onix1` as a dependency.
4142
* `Bonsai.StarterPack`: the "standard library" for Bonsai that contains tools that are used in almost every workflow.
42-
* `OpenEphys.Commutator`: Bonsai package for controlling Open Ephys commutators.
43-
* `OpenEphys.Onix1.Design`: An extension of the `OpenEphys.Onix1` library that includes graphical user interfaces (GUIs).
43+
* `OpenEphys.Commutator`: for controlling Open Ephys commutators.
44+
* `OpenEphys.Sockets.Bonsai`: for establishing TCP Sockets (to stream data to the Open Ephys GUI, for example).
4445

4546
> [!TIP]
4647
> Additional packages will allow you to extend the functionality of ONIX hardware beyond the scope
@@ -49,43 +50,16 @@ The following packages are required to run the workflows in this documentation a
4950
> estimation](https://bonsai-rx.org/sleap/), [HARP behavioral devices](https://harp-tech.org/), and
5051
> much more.
5152
52-
#### OpenEphys.Onix1.Design
53-
54-
To install the `OpenEphys.Onix1.Design` package, open the package manager and:
53+
To install packages, open the package manager and:
5554

5655
1. Click the `Browse` tab.
57-
1. Set `Package source` to `All` or `NuGet`.
58-
1. Search `OpenEphys.Onix1.Design`.
56+
1. Set `Package source` to `All`.
57+
1. Search for the exact package name listed above, e.g. `OpenEphys.Onix1.Design`.
5958
1. Click `Install`.
60-
1. Click `I Accept` when the license agreement window appears.
59+
1. If a license agreement window appears, click `I Accept`.
6160

6261
![Bonsai OpenEphys.Onix1.Design Install Screenshot](../../images/bonsai-install-OpenEphys.Onix1.Design.webp){width=650px}
6362

64-
> [!NOTE]
65-
> Installing OpenEphys.Onix1.Design automatically installs `OpenEphys.Onix1` because it's a dependency.
66-
67-
#### Bonsai.StarterPack
68-
69-
To install the `Bonsai.StarterPack` package, open the package manager and:
70-
71-
1. Click the `Browse` tab.
72-
1. Set `Package source` to `Bonsai Packages`.
73-
1. Search for `Bonsai.StarterPack`.
74-
1. Click `Install`.
75-
76-
![Bonsai Bonsai.StarterPack Install Screenshot](../../images/bonsai-install-Bonsai.StarterPack.webp){width=650px}
77-
78-
#### OpenEphys.Commutator
79-
80-
To install the `OpenEphys.Commutator` package, open the package manager and:
81-
82-
1. Click the `Browse` tab.
83-
1. Set `Package source` to `All` or `NuGet`.
84-
1. Search for `OpenEphys.Commutator`.
85-
1. Click `Install`.
86-
87-
![Bonsai OpenEphys.Commutator Install Screenshot](../../images/bonsai-install-OpenEphys.Commutator.webp){width=650px}
88-
8963
### Update Packages
9064

9165
It is good practice to periodically check for package updates. To do this, open the package manager and:

articles/hardware/hs64/load-data.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ uid: hs64_load-data
33
title: Load Data
44
---
55

6-
The following python script can be used to load and plot the data produced by the Headstage 64 [example workflow](xref:hs64_workflow).
6+
The following python script can be used to load and plot the data produced by the Headstage 64
7+
[example workflow](xref:hs64_workflow).
78

89
[!code-python[](../../../workflows/hardware/hs64/load-hs64.py)]
910

articles/hardware/np1e/load-data.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ uid: np1e_load-data
33
title: Load Data
44
---
55

6-
The following python script can be used to load and plot the data produced by the NeuropixelsV1e Headstage [example workflow](xref:np1e).
6+
The following python script can be used to load and plot the data produced by the NeuropixelsV1e
7+
Headstage [example workflow](xref:np1e).
78

89
[!code-python[](../../../workflows/hardware/np1e/load-np1e.py)]
910

1011
> [!NOTE]
11-
> To plot probeinterface data, [save the probe configuration file](xref:np1e_gui#save-probeinterface-file) into the same directory of your data.
12-
13-
> [!NOTE]
14-
> This script will attempt to load entire files into arrays. For long recordings, data will need to
15-
> be split into more manageable chunks by:
16-
> - Modifying this script to partially load files
17-
> - Modifying the workflow to cyclically create new files after a certain duration
12+
> - To plot probeinterface data, [save the probe configuration file](xref:np1e_gui#save-probeinterface-file)
13+
> into the same directory of your data.
14+
> - This script will attempt to load entire files into arrays. For long recordings, data will need to
15+
> be split into more manageable chunks by:
16+
> - Modifying this script to partially load files
17+
> - Modifying the workflow to cyclically create new files after a certain duration

articles/hardware/np2e/load-data.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,18 @@ uid: np2e_load-data
33
title: Load Data
44
---
55

6-
The following python script can be used to load and plot the data produced by the NeuropixelsV1e Headstage [example workflow](xref:np2e).
6+
The following python script can be used to load and plot the data produced by the NeuropixelsV2e
7+
Headstage [example workflow](xref:np2e).
78

89
[!code-python[](../../../workflows/hardware/np2e/load-np2e.py)]
910

1011
> [!NOTE]
11-
> To plot probeinterface data, [save the probe configuration file](xref:np2e_gui#save-probeinterface-file) into the same directory of your data.
12-
13-
> [!NOTE]
14-
> This script will attempt to load entire files into arrays. For long recordings, data will need to
15-
> be split into more manageable chunks by:
16-
> - Modifying this script to partially load files
17-
> - Modifying the workflow to cyclically create new files after a certain duration
12+
> - To plot probeinterface data, [save the probe configuration file](xref:np2e_gui#save-probeinterface-file)
13+
> into the same directory of your data.
14+
> - By default, this script only populates plots for the Neuropixels 2.0 probe A and leaves plots
15+
> for Neuropixels 2.0 probe B empty. If you are recording from both probes and want to plot probe
16+
> B ephys and probe data, uncomment the relevant lines in the script.
17+
> - This script will attempt to load entire files into arrays. For long recordings, data will need to
18+
> be split into more manageable chunks by:
19+
> - Modifying this script to partially load files
20+
> - Modifying the workflow to cyclically create new files after a certain duration

articles/hardware/rhs2116/load-data.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ uid: rhs2116_load-data
33
title: Load Data
44
---
55

6-
The following python script can be used to load and plot the data produced by the Headstage Rhs2116 [example workflow](xref:rhs2116).
6+
The following python script can be used to load and plot the data produced by the Headstage Rhs2116
7+
[example workflow](xref:rhs2116).
78

89
[!code-python[](../../../workflows/hardware/rhs2116/load-rhs2116.py)]
910

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build project
2-
$libPath = ".\src\onix-bonsai-onix1\"
2+
$libPath = ".\src\bonsai-onix1\"
33
dotnet build $libPath --configuration Release
44

55
# Export workflow vectors

docfx-utils.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ param
1111
# this is called removeartifacts instead of clean because clean might be already mean something in powershell?
1212
function removeartifacts
1313
{
14-
$deletePaths = ".\workflows\**\*.svg", ".\workflows\hardware\**\*.svg", ".\workflows\**\*.bonsai.layout", ".\workflows\hardware\**\*.bonsai.layout", ".\api\*.yml", ".\api\.manifest", ".\_site\", ".\_raw\", ".\_view\", ".\src\onix-bonsai-onix1\artifacts\"
14+
$deletePaths = ".\workflows\**\*.svg", ".\workflows\hardware\**\*.svg", ".\workflows\**\*.bonsai.layout", ".\workflows\hardware\**\*.bonsai.layout", ".\api\*.yml", ".\api\.manifest", ".\_site\", ".\_raw\", ".\_view\", ".\src\bonsai-onix1\artifacts\"
1515
foreach($deletePath in $deletePaths){if (Test-Path $deletePath){Remove-Item $deletePath -Recurse}}
1616
Write-Output ""
1717
}
@@ -22,7 +22,7 @@ function lychee($lycheePath)
2222
{
2323
Write-Output "`nRunning lychee..."
2424
Write-Output "------------------------------------------`n"
25-
Invoke-Expression "& `"$lycheePath`" --no-progress --base _site --exclude ^https://github\.com.*merge.* --exclude ^https://github\.com.*apiSpec.* --exclude ^https://github\.com/open-ephys/onix1-bonsai-docs/blob/.* '_site/**/*.html' --max-retries 0 --max-concurrency 32 --cache --max-cache-age 1d"
25+
Invoke-Expression "& `"$lycheePath`" --no-progress --base _site --exclude ^https://github\.com.*merge.* --exclude ^https://github\.com.*apiSpec.* --exclude ^https://github\.com/open-ephys/bonsai-onix1-docs/blob/.* '_site/**/*.html' --max-retries 0 --max-concurrency 32 --cache --max-cache-age 1d"
2626
Write-Output "`n"
2727
}
2828

-26.4 KB
Binary file not shown.
-26.2 KB
Binary file not shown.
-23.8 KB
Binary file not shown.
-75.7 KB
Binary file not shown.
-77.3 KB
Binary file not shown.

src/bonsai-onix1

Submodule bonsai-onix1 added at e4d8998

src/onix-bonsai-onix1

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)