Skip to content

Commit 0f71eaa

Browse files
committed
Ensure that the correct probe group is loaded
1 parent dcb09c1 commit 0f71eaa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

OpenEphys.Onix1/NeuropixelsV2ProbeConfiguration.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,13 @@ private NeuropixelsV2ProbeConfiguration()
102102
/// <summary>
103103
/// Initializes a new instance of the <see cref="NeuropixelsV2ProbeConfiguration"/> class.
104104
/// </summary>
105-
public NeuropixelsV2ProbeConfiguration(NeuropixelsV2Probe probe, NeuropixelsV2ProbeType type, NeuropixelsV2ShankReference reference) : this()
105+
public NeuropixelsV2ProbeConfiguration(NeuropixelsV2Probe probe, NeuropixelsV2ProbeType type, NeuropixelsV2ShankReference reference)
106106
{
107107
Probe = probe;
108108
ProbeType = type;
109109
Reference = reference;
110+
ProbeGroup = new(ProbeType);
111+
ChannelMap = NeuropixelsV2eProbeGroup.ToChannelMap(ProbeGroup, ProbeType);
110112
}
111113

112114
/// <summary>

0 commit comments

Comments
 (0)