Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions NeoAnalysis_Py3.5/NeoAnalysis/spikesorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,15 +740,15 @@ def __finish_pop(self):
self.__selectChan()

def __deleteChn(self,f,selectChan):
spk_startswith = "spike_{0}".format(selectChan)
spk_startswith = "spike_{0}_".format(selectChan)
for chn in f['spikes'].keys():
if chn.startswith(spk_startswith):
del f['spikes'][chn]

def __loadChnTimeWave(self,f,selectChan):
times = list()
waveforms = list()
spk_startswith = "spike_{0}".format(selectChan)
spk_startswith = "spike_{0}_".format(selectChan)
for chn_unit in f["spikes"].keys():
if chn_unit.startswith(spk_startswith):
time = f["spikes"][chn_unit]["times"].value
Expand Down Expand Up @@ -1014,7 +1014,7 @@ def __find_temperature(self,tree,mintemp,maxtemp,tempstep,min_clus):
return temp

def __load_waveforms(self,selectChan,file_name):
spk_startswith = "spike_{0}".format(selectChan)
spk_startswith = "spike_{0}_".format(selectChan)
with hp.File(file_name,"r") as f:
times = list()
waveforms = list()
Expand Down Expand Up @@ -1117,7 +1117,7 @@ def __loadWaveInTimebin(self):
times = list()
masks = list()
with hp.File(self.file_name,"r") as f:
spk_startswith = "spike_{0}".format(self.selectChan)
spk_startswith = "spike_{0}_".format(self.selectChan)
for chn_unit in f["spikes"].keys():
if chn_unit.startswith(spk_startswith):
tep_time = f["spikes"][chn_unit]["times"].value
Expand Down Expand Up @@ -1149,7 +1149,7 @@ def __loadWaveInTimebin(self):
# return None, None

def __load_chn_data(self,selectChan,file_name):
spk_startswith = "spike_{0}".format(selectChan)
spk_startswith = "spike_{0}_".format(selectChan)
with hp.File(file_name,"r") as f:
times = list()
waveforms = list()
Expand Down