You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update behavior while automatically searching for calibration files
- Updated tooltips and error messages
- Only update the info string once per toggle
- If the automated search checkbox is checked, gray out the individual calibration file buttons
- Only search for calibration files when the device is enabled and any other trigger is hit
- Limit recursive search for calibration files to two folders from the root
- Change some log statements to console instead of debug so users can get real-time feedback
searchForCalibrationFilesButton->setTooltip("Open a dialog to choose the folder where calibration files exist. This can be a top-level folder which is recursively searched for a matching serial number.");
83
+
searchForCalibrationFilesButton->setTooltip("Open a file dialog to choose a folder that contains all calibration files. The calibration file(s) that matches your probe will automatically be selected if it exists in this folder.");
calibrationFolderButton->setTooltip("Open a file dialog to choose the gain calibration folder path to automatically search for probe calibration files.");
102
+
calibrationFolderButton->setTooltip("Open a file dialog to choose the calibration folder path to automatically search for probe calibration files.");
103
103
addAndMakeVisible(calibrationFolderButton.get());
104
104
105
105
calibrationFolderChooser = std::make_unique<FileChooser>("Select Gain Calibration Folder.", File());
searchForCorrectionFilesButton->setTooltip("Open a dialog to choose the folder where calibration files exist. This can be a top-level folder which is recursively searched for a matching serial number.");
71
+
searchForCorrectionFilesButton->setTooltip("Open a file dialog to choose a folder that contains all calibration files. The calibration file that matches your probe will automatically be selected if it exists in this folder.");
if (button->getToggleState() && device->isEnabled())
534
530
{
535
-
auto calibrationFile = searchDirectoryForCalibrationFile(gainCorrectionFolder->getText().toStdString(), std::static_pointer_cast<Neuropixels2e>(device)->getProbeSerialNumber(probeIndex));
531
+
auto calibrationFile = searchDirectoryForCalibrationFile(gainCorrectionFolder->getText().toStdString(), npx->getProbeSerialNumber(probeIndex));
auto calibrationFile = searchDirectoryForCalibrationFile(gainCorrectionFolder->getText().toStdString(), std::static_pointer_cast<Neuropixels2e>(device)->getProbeSerialNumber(probeIndex));
547
542
548
-
if (calibrationFile != "")
549
-
gainCorrectionFile->setText(calibrationFile);
543
+
if (device->isEnabled())
544
+
{
545
+
auto calibrationFile = searchDirectoryForCalibrationFile(gainCorrectionFolder->getText().toStdString(), npx->getProbeSerialNumber(probeIndex));
0 commit comments