diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f9462d..dd938ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,15 @@ -Changelog ---------- +# Changelog -0.3.0 ------- -* add spike groups in the picking interface -* add the live recording option in the EphysBinViewer \ No newline at end of file +## [Unreleased] + +## [1.0.1] - 2024-12-06 + +### added +- minimal support for Open Ephys [issue 7](https://github.com/int-brain-lab/viewephys/issues/7) + +## [1.0.0] - 2024-10-09 + +### added +- add spike groups in the picking interface +- add the live recording option in the EphysBinViewer +- \ No newline at end of file diff --git a/setup.py b/setup.py index 40f843a..fe43f07 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setuptools.setup( name="viewephys", - version="1.0.0", + version="1.0.1", author="Olivier Winter", description="Raw Neuropixel data viewer for numpy", long_description=long_description, diff --git a/src/viewephys/gui.py b/src/viewephys/gui.py index a21dd2f..8319323 100644 --- a/src/viewephys/gui.py +++ b/src/viewephys/gui.py @@ -64,7 +64,8 @@ def open_file(self, *args, live=False, file=None): if file is None: file, _ = QtWidgets.QFileDialog.getOpenFileName( parent=self, caption='Select Raw electrophysiology recording', - directory=self.settings.value('bin_file_path'), filter='*.*bin') + directory=self.settings.value('bin_file_path'), + filter='Electrophysiology files (*.*bin *.dat)') if file == '': return file = Path(file) @@ -95,7 +96,7 @@ def on_horizontalSliderValueChanged(self): def on_horizontalSliderReleased(self): first = int(float(self.horizontalSlider.value()) * NSAMP_CHUNK) last = first + int(NSAMP_CHUNK) - data = self.sr[first:last, :-self.sr.nsync].T + data = self.sr[first:last, :self.sr.nc - self.sr.nsync].T # get parameters for both AP and LFP band if self.sr.type == 'lf': @@ -111,7 +112,7 @@ def on_horizontalSliderReleased(self): if not self.cbs[k].isChecked(): continue if k == 'destripe': - data = fcn_destripe(x=data, fs=self.sr.fs, channel_labels=True, h=self.sr.geometry, neuropixel_version=self.sr.major_version) + data = fcn_destripe(x=data, fs=self.sr.fs, channel_labels=False, h=self.sr.geometry, neuropixel_version=self.sr.major_version) self.viewers[k] = viewephys(data, self.sr.fs, channels=self.sr.geometry, title=k, t0=t0 * T_SCALAR, t_scalar=T_SCALAR, a_scalar=A_SCALAR) def closeEvent(self, event): diff --git a/src/viewephys/raster.py b/src/viewephys/raster.py index 399fd63..ae0c678 100644 --- a/src/viewephys/raster.py +++ b/src/viewephys/raster.py @@ -136,7 +136,7 @@ def open_file(self): parent=self, caption='Select Raw electrophysiology recording', directory=self.settings.value('bin_file_path'), - filter='*.*bin') + filter='SpikeGlx (*.*bin);; Open Ephys (*.dat)') if file == '': return file = Path(file)