Skip to content

Commit

Permalink
Add validation of gain calibration files for Neuropixels
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
bparks13 committed Sep 12, 2024
1 parent 8ded0ba commit c42583c
Show file tree
Hide file tree
Showing 22 changed files with 1,097 additions and 574 deletions.
31 changes: 15 additions & 16 deletions OpenEphys.Onix1.Design/GenericDeviceDialog.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 0 additions & 15 deletions OpenEphys.Onix1.Design/GenericDeviceDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,5 @@ public GenericDeviceDialog()
{
InitializeComponent();
}

private void ButtonClick(object sender, System.EventArgs e)
{
if (sender is Button button)
{
if (button.Name == nameof(buttonOK))
{
DialogResult = DialogResult.OK;
}
else if (button.Name == nameof(buttonCancel))
{
DialogResult = DialogResult.Cancel;
}
}
}
}
}
Loading

0 comments on commit c42583c

Please sign in to comment.