Skip to content

Commit

Permalink
1.0.1: minimal support for OpenEphys, fixes #7
Browse files Browse the repository at this point in the history
  • Loading branch information
oliche committed Dec 6, 2024
1 parent 3421696 commit cfe6184
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
20 changes: 14 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
Changelog
---------
# Changelog

0.3.0
------
* add spike groups in the picking interface
* add the live recording option in the EphysBinViewer
## [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
-
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
7 changes: 4 additions & 3 deletions src/viewephys/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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':
Expand All @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion src/viewephys/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cfe6184

Please sign in to comment.