Skip to content

Commit

Permalink
update h5py
Browse files Browse the repository at this point in the history
  • Loading branch information
Hu committed Feb 18, 2024
1 parent 8db2fe9 commit e796208
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions patchview/patchview.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Patchviewer by M.H.
"""
import PyQt5
from PyQt5 import QtGui, QtWidgets, QtCore
from PyQt5.QtWidgets import QMessageBox, QTableWidgetItem
from PyQt5.QtWidgets import QSplitter
Expand Down Expand Up @@ -6946,7 +6947,7 @@ def getSingleTraceFeature_ABF(self, v, t, seriesIdx):
dvdt = ephys_ft.calculate_dvdt(v, t, filterHighCutFreq_signal / 1000)
dvdt1 = np.insert(dvdt, 0, 0)
if EphysObject._spikes_df.size:
peaks = spike_df["peak_index"].to_list() ## list of peak index
peaks = [int(p_) for p_ in spike_df["peak_index"].to_list()] ## list of peak index
try:
maxSPwidth = int(spike_df["width"].max(skipna=True) * sampleRate * 2.5)
except:
Expand Down Expand Up @@ -6974,7 +6975,6 @@ def getSingleTraceFeature_ABF(self, v, t, seriesIdx):
for j, p in enumerate(peaks):
start_index = p - before_
end_index = p + after_
# print(start_index, end_index, sweepCount)
waves[:, j] = v_filtered[start_index:end_index]
waves_dvdt[:, j] = dvdt1[start_index:end_index]
else:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ PyOpenGL_accelerate>=3.1.6 ; sys_platform == 'win32'
cython
neo
pylru==1.2.1
h5py==3.7.0
h5py
joblib
future>=0.18.3
pyYAML
Expand Down

0 comments on commit e796208

Please sign in to comment.