Skip to content

Commit 5beca0b

Browse files
authored
Merge pull request #129 from AllenNeuralDynamics/fix-docs
Fix harp logging in docs
2 parents 1b52dcb + ec6e57c commit 5beca0b

File tree

4 files changed

+23
-24
lines changed

4 files changed

+23
-24
lines changed

docs/articles/core-logging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Once this `Subject` is created, other nodes can access to it. For instance, if o
2121

2222
### With Metadata
2323

24-
Each device can be saved with metadata by providing the `device.yml` file information to the operator. This string can be passed manually or by using the `GetMetadata` node from the device-specific package.
24+
Each device can be saved with metadata by providing the `device.yml` file information to the operator. This string (i.e. the literal of the [`device.yml`](https://github.com/AllenNeuralDynamics/harp.device.lickety-split/blob/main/device.yml)) can be passed manually or by using the `GetMetadata` node from the device-specific package.
2525
For example, to log data from a `LicketySplit` device:
2626

2727
:::workflow

docs/articles/harp-utils.md

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

docs/workflows/SaveHarpData.bonsai

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<WorkflowBuilder Version="2.8.2"
2+
<WorkflowBuilder Version="2.8.5"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xmlns:harp="clr-namespace:Bonsai.Harp;assembly=Bonsai.Harp"
55
xmlns:rx="clr-namespace:Bonsai.Reactive;assembly=Bonsai.Core"
@@ -43,20 +43,20 @@
4343
<Expression xsi:type="SubscribeSubject">
4444
<Name>DeviceEvents</Name>
4545
</Expression>
46-
<Expression xsi:type="IncludeWorkflow" Path="AllenNeuralDynamics.Core:LogHarpDevice.bonsai">
46+
<Expression xsi:type="IncludeWorkflow" Path="AllenNeuralDynamics.HarpUtils:LogHarpDevice.bonsai">
4747
<SubjectName>LoggingRootPath</SubjectName>
4848
<Modality>Behavior</Modality>
49-
<DeviceName>DeviceName</DeviceName>
50-
<HarpDeviceName>HarpDeviceName</HarpDeviceName>
49+
<DeviceName>Device</DeviceName>
50+
<HarpDeviceName>HarpBehavior</HarpDeviceName>
5151
</Expression>
5252
<Expression xsi:type="SubscribeSubject">
5353
<Name>AnotherDeviceEvents</Name>
5454
</Expression>
55-
<Expression xsi:type="IncludeWorkflow" Path="AllenNeuralDynamics.Core:LogHarpDevice.bonsai">
55+
<Expression xsi:type="IncludeWorkflow" Path="AllenNeuralDynamics.HarpUtils:LogHarpDevice.bonsai">
5656
<SubjectName>LoggingRootPath</SubjectName>
5757
<Modality>Behavior</Modality>
58-
<DeviceName>AnotherDeviceName</DeviceName>
59-
<HarpDeviceName>HarpDeviceName</HarpDeviceName>
58+
<DeviceName>AnotherDevice</DeviceName>
59+
<HarpDeviceName>HarpBehavior</HarpDeviceName>
6060
</Expression>
6161
</Nodes>
6262
<Edges>

docs/workflows/SaveHarpDataWithMetadata.bonsai

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@
3030
<Expression xsi:type="SubscribeSubject">
3131
<Name>LicketySplitEvents</Name>
3232
</Expression>
33+
<Expression xsi:type="IncludeWorkflow" Path="AllenNeuralDynamics.HarpUtils:LogHarpDeviceWithMetadata.bonsai">
34+
<DeviceMetadata xsi:nil="true" />
35+
<Modality>Behavior</Modality>
36+
<DeviceName xsi:nil="true" />
37+
</Expression>
38+
<Expression xsi:type="SubscribeSubject">
39+
<Name>LicketySplitEvents</Name>
40+
</Expression>
3341
<Expression xsi:type="Combinator">
3442
<Combinator xsi:type="p1:GetMetadata" />
3543
</Expression>
@@ -38,17 +46,18 @@
3846
<Property Name="DeviceMetadata" />
3947
</PropertyMappings>
4048
</Expression>
41-
<Expression xsi:type="IncludeWorkflow" Path="AllenNeuralDynamics.Core:LogHarpDeviceWithMetadata.bonsai">
42-
<DeviceMetadata />
49+
<Expression xsi:type="IncludeWorkflow" Path="AllenNeuralDynamics.HarpUtils:LogHarpDeviceWithMetadata.bonsai">
50+
<DeviceMetadata xsi:nil="true" />
4351
<Modality>Behavior</Modality>
44-
<DeviceName>Lickometer</DeviceName>
52+
<DeviceName xsi:nil="true" />
4553
</Expression>
4654
</Nodes>
4755
<Edges>
4856
<Edge From="1" To="2" Label="Source1" />
49-
<Edge From="3" To="6" Label="Source1" />
50-
<Edge From="4" To="5" Label="Source1" />
51-
<Edge From="5" To="6" Label="Source2" />
57+
<Edge From="3" To="4" Label="Source1" />
58+
<Edge From="5" To="8" Label="Source1" />
59+
<Edge From="6" To="7" Label="Source1" />
60+
<Edge From="7" To="8" Label="Source2" />
5261
</Edges>
5362
</Workflow>
5463
</WorkflowBuilder>

0 commit comments

Comments
 (0)