Skip to content

Commit c42583c

Browse files
committed
Add validation of gain calibration files for Neuropixels
- Refactored code (moved to helper class) and made names consistent - Added TryParse methods for NeuropixelsV2e and NeuropixelsV1e calibration files - Refactored code to return a nullable type instead of following the conventional TryParse pattern - Added dialog elements that displays the current gain correction value from the gain calibration file - Added V2 gain correction class for easier passing of correction and SN - Display the serial number after parsing calibration files - Add a button to open a new window for the ADC values in NeuropixelsV1eDialog - Small update to size of controls and panels - Added status strip for Neuropixels V1e - Make code more concise, utilizing reactive patterns - Add try-catch when reading from file for very specific exceptions - Rename variables to use full names instead of abbreviations
1 parent 8ded0ba commit c42583c

22 files changed

+1097
-574
lines changed

OpenEphys.Onix1.Design/GenericDeviceDialog.Designer.cs

Lines changed: 15 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OpenEphys.Onix1.Design/GenericDeviceDialog.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,5 @@ public GenericDeviceDialog()
1515
{
1616
InitializeComponent();
1717
}
18-
19-
private void ButtonClick(object sender, System.EventArgs e)
20-
{
21-
if (sender is Button button)
22-
{
23-
if (button.Name == nameof(buttonOK))
24-
{
25-
DialogResult = DialogResult.OK;
26-
}
27-
else if (button.Name == nameof(buttonCancel))
28-
{
29-
DialogResult = DialogResult.Cancel;
30-
}
31-
}
32-
}
3318
}
3419
}

0 commit comments

Comments
 (0)