From 67e8857695643492d35c6c7b50e21b1d0e08876a Mon Sep 17 00:00:00 2001 From: bparks13 Date: Wed, 9 Oct 2024 16:07:14 -0400 Subject: [PATCH] Minor edits to remove blank space --- .gitignore | 1 - OpenEphys.Onix1/ConfigureNeuropixelsV1fHeadstage.cs | 1 - OpenEphys.Onix1/NeuropixelsV1.cs | 6 ++---- OpenEphys.Onix1/NeuropixelsV1AdcCalibration.cs | 2 +- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 7bcd72b..fd03c41 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,3 @@ .bonsai/*.exe.settings .bonsai/*.exe.WebView2/ *.user -/OpenEphys.Onix1/ConfigureHeadstageNric1384LoadTest.cs diff --git a/OpenEphys.Onix1/ConfigureNeuropixelsV1fHeadstage.cs b/OpenEphys.Onix1/ConfigureNeuropixelsV1fHeadstage.cs index 55bb3b1..be5602b 100644 --- a/OpenEphys.Onix1/ConfigureNeuropixelsV1fHeadstage.cs +++ b/OpenEphys.Onix1/ConfigureNeuropixelsV1fHeadstage.cs @@ -133,7 +133,6 @@ class ConfigureNeuropixels1fHeadstageLinkController : ConfigurePortController // TODO: Needs more testing protected override bool ConfigurePortVoltage(DeviceContext device) { - if (PortVoltage == null) { const double MinVoltage = 5.0; diff --git a/OpenEphys.Onix1/NeuropixelsV1.cs b/OpenEphys.Onix1/NeuropixelsV1.cs index cf9e7cb..3ba94fa 100644 --- a/OpenEphys.Onix1/NeuropixelsV1.cs +++ b/OpenEphys.Onix1/NeuropixelsV1.cs @@ -1,5 +1,4 @@ - -using System; +using System; using System.Collections; namespace OpenEphys.Onix1 @@ -109,7 +108,6 @@ internal static BitArray[] MakeConfigBits(NeuropixelsV1ProbeConfiguration probeC BaseConfigs[configIdx][chanOptsIdx + 6] = false; BaseConfigs[configIdx][chanOptsIdx + 7] = !probeConfiguration.SpikeFilter; ; // Full bandwidth = 1, filter on = 0 - } int k = 0; @@ -155,7 +153,7 @@ internal static BitArray[] MakeConfigBits(NeuropixelsV1ProbeConfiguration probeC var compN = new BitArray(new byte[] { (byte)adc.CompN }); var cfix = new BitArray(new byte[] { (byte)adc.Cfix }); var slope = new BitArray(new byte[] { (byte)adc.Slope }); - var coarse = (new BitArray(new byte[] { (byte)adc.Coarse })); + var coarse = new BitArray(new byte[] { (byte)adc.Coarse }); var fine = new BitArray(new byte[] { (byte)adc.Fine }); BaseConfigs[configIdx][compOffset + 0] = compP[0]; diff --git a/OpenEphys.Onix1/NeuropixelsV1AdcCalibration.cs b/OpenEphys.Onix1/NeuropixelsV1AdcCalibration.cs index 09e767c..8fff986 100644 --- a/OpenEphys.Onix1/NeuropixelsV1AdcCalibration.cs +++ b/OpenEphys.Onix1/NeuropixelsV1AdcCalibration.cs @@ -4,6 +4,6 @@ /// A struct to hold an array of values and the serial number needed for each . /// /// The serial number from a calibration file. - /// The ADC calibration values from a calibration file. + /// The ADC calibration values from a calibration file. public readonly record struct NeuropixelsV1AdcCalibration(ulong SerialNumber, NeuropixelsV1Adc[] Adcs); }