Skip to content

Commit edae6f6

Browse files
committed
Merge branch 'origin/main' into recording-optimization
2 parents 952e5a3 + c91afeb commit edae6f6

12 files changed

Lines changed: 62 additions & 22 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#Open Ephys GUI main build file
22
cmake_minimum_required(VERSION 3.15)
33

4-
set(GUI_VERSION 1.0.1)
4+
set(GUI_VERSION 1.0.2)
55

66
string(REGEX MATCHALL "[0-9]+" VERSION_LIST ${GUI_VERSION})
77
list(LENGTH VERSION_LIST num_version_components)

Plugins/LfpViewer/LfpDisplayOptions.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,6 +1268,11 @@ void LfpDisplayOptions::comboBoxChanged (ComboBox* cb)
12681268
selectedVoltageRange[selectedChannelType] = cb->getSelectedId();
12691269
selectedVoltageRangeValues[selectedChannelType] = cb->getText();
12701270
canvasSplit->redraw();
1271+
1272+
if (selectedChannelType == ContinuousChannel::Type::AUX && isAuxAutoScaleEnabled())
1273+
rangeSelectionLabel->setText ("Range", dontSendNotification);
1274+
else
1275+
rangeSelectionLabel->setText ("Range (" + rangeUnits[selectedChannelType] + ")", dontSendNotification);
12711276
}
12721277
else if (cb == spreadSelection.get())
12731278
{

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ Our primary user base is scientists performing electrophysiology experiments wit
3636

3737
The easiest way to get started is to download the installer for your platform of choice:
3838

39-
- [Windows](https://openephys.jfrog.io/artifactory/GUI-binaries/Release-Installer/windows/Install-Open-Ephys-GUI-v1.0.1.exe)
40-
- [Ubuntu/Debian](https://openephys.jfrog.io/artifactory/GUI-binaries/Release-Installer/linux/open-ephys-gui-v1.0.1.deb)
41-
- [macOS](https://openephys.jfrog.io/artifactory/GUI-binaries/Release-Installer/mac/Open_Ephys_GUI_v1.0.1.dmg)
39+
- [Windows](https://openephys.jfrog.io/artifactory/GUI-binaries/Release-Installer/windows/Install-Open-Ephys-GUI-v1.0.2.exe)
40+
- [Ubuntu/Debian](https://openephys.jfrog.io/artifactory/GUI-binaries/Release-Installer/linux/open-ephys-gui-v1.0.2.deb)
41+
- [macOS](https://openephys.jfrog.io/artifactory/GUI-binaries/Release-Installer/mac/Open_Ephys_GUI_v1.0.2.dmg)
4242

43-
It’s also possible to obtain the binaries as a .zip file for [Windows](https://openephys.jfrog.io/artifactory/GUI-binaries/Release/windows/open-ephys-v1.0.1-windows.zip), [Linux](https://openephys.jfrog.io/artifactory/GUI-binaries/Release/linux/open-ephys-v1.0.1-linux.zip), or [Mac](https://openephys.jfrog.io/artifactory/GUI-binaries/Release/mac/open-ephys-v1.0.1-mac.zip).
43+
It’s also possible to obtain the binaries as a .zip file for [Windows](https://openephys.jfrog.io/artifactory/GUI-binaries/Release/windows/open-ephys-v1.0.2-windows.zip), [Linux](https://openephys.jfrog.io/artifactory/GUI-binaries/Release/linux/open-ephys-v1.0.2-linux.zip), or [Mac](https://openephys.jfrog.io/artifactory/GUI-binaries/Release/mac/open-ephys-v1.0.2-mac.zip).
4444

4545
Detailed installation instructions can be found [here](https://open-ephys.github.io/gui-docs/User-Manual/Installing-the-GUI.html).
4646

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Package: open-ephys
2-
Version: 1.0.1
2+
Version: 1.0.2
33
Architecture: amd64
44
Installed-Size: 18644
55
Section: science
66
Priority: optional
7-
Maintainer: Open Ephys <info@open-ephys.com>
7+
Maintainer: Open Ephys <gui@open-ephys.org>
88
Homepage: https://open-ephys.org/gui
99
Description: Software for processing, recording, and visualizing multichannel electrophysiology data.

Resources/Installers/Linux/Open-Ephys_Installer/DEBIAN/copyright

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Upstream-Name: Open Ephys GUI
33
Source: https://github.com/open-ephys/plugin-GUI/
44

55
Files: *
6-
Copyright: 2025 Open Ephys <info@open-ephys.com>
6+
Copyright: 2026 Open Ephys <gui@open-ephys.org>
77
License: GPL-3+
88
This program is free software: you can redistribute it and/or modify
99
it under the terms of the GNU General Public License as published by

Resources/Installers/Windows/windows_installer_script.iss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[Setup]
22
AppId=Open Ephys
33
AppName=Open Ephys GUI
4-
AppVersion=1.0.1
5-
AppVerName=Open Ephys GUI 1.0.1
6-
AppCopyright=Copyright (C) 2010-2025, Open Ephys & Contributors
4+
AppVersion=1.0.2
5+
AppVerName=Open Ephys GUI 1.0.2
6+
AppCopyright=Copyright (C) 2010-2026, Open Ephys & Contributors
77
AppPublisher=open-ephys.org
88
AppPublisherURL=https://open-ephys.org/gui
99
DefaultDirName={autopf}\Open Ephys

Source/MainWindow.cpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,17 @@ MainWindow::MainWindow (const File& fileToLoad, bool isConsoleApp_) : isConsoleA
142142
#ifdef JUCE_WINDOWS
143143
documentWindow->setUsingNativeTitleBar (false);
144144
#ifdef NDEBUG
145-
ShowWindow (GetConsoleWindow(), SW_HIDE);
145+
// Only hide console if launched by double-clicking (not from CLI)
146+
// Check if console is attached to a parent process (CLI) or standalone
147+
DWORD processList[2];
148+
DWORD processCount = GetConsoleProcessList (processList, 2);
149+
150+
// If only 1 process (this app), it was launched by double-clicking
151+
// If more than 1, it was launched from an existing console (CLI)
152+
if (processCount == 1)
153+
{
154+
ShowWindow (GetConsoleWindow(), SW_HIDE);
155+
}
146156
#endif
147157
#else
148158
documentWindow->setUsingNativeTitleBar (true); // Use native title bar on Mac and Linux

Source/Processors/AudioMonitor/AudioMonitor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ void AudioMonitor::updateSettings()
169169
CategoricalParameter* spikeChanParam = (CategoricalParameter*) stream->getParameter ("spike_channel");
170170
spikeChanParam->setCategories (spikeChannelNames);
171171

172-
parameterValueChanged (stream->getParameter ("spike_channel"));
172+
if (spikeChanParam->getSelectedIndex() > 0)
173+
parameterValueChanged (stream->getParameter ("spike_channel"));
173174
}
174175
}
175176

Source/Processors/FileReader/BinaryFileSource/BinaryFileSource.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,21 @@ void BinaryFileSource::fillRecordInfo()
131131
}
132132

133133
int numChannels = record[idNumChannels];
134+
135+
// if numchannels is not equal to the size of channels var, skip this record
136+
if (numChannels != channels.size())
137+
{
138+
LOGE ("Number of channels mismatch in stream: ", streamName);
139+
continue;
140+
}
141+
142+
// if numSamples is not a whole number, skip this record
143+
if (dataFile.getSize() % (numChannels * sizeof (int16)) != 0)
144+
{
145+
LOGE ("File size is not consistent with number of channels in stream: ", streamName);
146+
continue;
147+
}
148+
134149
int64 numSamples = (dataFile.getSize() / numChannels) / sizeof (int16);
135150

136151
info.name = streamName;

Source/Processors/FileReader/FileReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ bool FileReader::setFile (String fullpath, bool shouldUpdateSignalChain)
286286
if (isEmptyFile)
287287
{
288288
input = nullptr;
289-
showWarningAsync ("Failed to open file", "Continuous data file is missing or empty.");
289+
showWarningAsync ("Failed to open file", "Continuous data file is missing, empty, or invalid.");
290290
CoreServices::sendStatusMessage ("Empty file. Ignoring open operation");
291291

292292
return false;

0 commit comments

Comments
 (0)