Skip to content

Commit 73c6a1a

Browse files
ZeitgeberZeitgeber
authored andcommitted
title
1 parent 3a2558a commit 73c6a1a

2 files changed

Lines changed: 9 additions & 12 deletions

File tree

patchview/patchview.py

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3382,7 +3382,7 @@ def calBaselineValue(self, data, nSTD):
33823382
# return , (bin_edges[bindex]+ M)*0.4
33833383
# x = data[(data > data.min()*0.6) & (data < data.max()*0.6)]
33843384
# m = np.mean(x)
3385-
print(m, nSTD, std0)
3385+
#print(m, nSTD, std0)
33863386
t = m + nSTD * std0
33873387
return m, t, std0
33883388

@@ -4775,9 +4775,6 @@ def checkConnectionAction_clicked(self):
47754775
nSig = self.splitViewTab_connection.tables[
47764776
"Detected connections"
47774777
].rowCount() ## number of significant traces (estimated from connection table)
4778-
print("nsig", nSig)
4779-
4780-
print("nsig " + str(nSig))
47814778
# print(data.shape[1])
47824779

47834780
self.splitViewTab_connection.matplotViews["Average traces"].figure.clear()
@@ -4821,7 +4818,7 @@ def checkConnectionAction_clicked(self):
48214818
gs = self.splitViewTab_connection.matplotViews[
48224819
"Average traces"
48234820
].figure.add_gridspec(nRow + 1, nCol)
4824-
print('grid spec', nRow+1, nCol)
4821+
# print('grid spec', nRow+1, nCol)
48254822
axes = []
48264823
nodeColor = []
48274824
arrowStyl = []
@@ -4929,7 +4926,7 @@ def checkConnectionAction_clicked(self):
49294926
# axes[j].legend("Ch {:d} p={:.2f}".format(j+1, p), frameon=False, fancybox = False, numpoints = 6)
49304927
# axes[j].set_title("Ch {:d} p={:.2f}".format(j+1, p), fontsize = 8)
49314928
axes[pltCount].set_title(
4932-
"Ch {:d} -> Ch {:d}".format(stimChanID, idx + 1), fontsize=10
4929+
"Series {:d}, Ch {:d} -> Ch {:d}".format(sel[1]+1, stimChanID, idx + 1), fontsize=10
49334930
)
49344931
axes[pltCount].spines["right"].set_visible(False)
49354932
axes[pltCount].spines["top"].set_visible(False)
@@ -6934,7 +6931,7 @@ def getEphySpikePars(self):
69346931
0
69356932
]
69366933
min_peak = pv["Spike detection parameters"][1][
6937-
"peak voltage (min=-30;max=150)"
6934+
"peak voltage (min=-100;max=150)"
69386935
][0]
69396936
thresh_frac = pv["Spike detection parameters"][1][
69406937
"thresh_frac (min=0.02;max=0.08)"
@@ -6960,7 +6957,7 @@ def getEphySpikePars(self):
69606957
start_latency,
69616958
)
69626959
except:
6963-
return (None,None,None,None,None,None,None,None)
6960+
return (None,None,None,None,None,None,None,None, None)
69646961

69656962
def getSingleTraceFeature_ABF(self, v, t, seriesIdx):
69666963
self.updateUserParamters()
@@ -6973,7 +6970,7 @@ def getSingleTraceFeature_ABF(self, v, t, seriesIdx):
69736970
end = (
69746971
stimInfo[sweepIdx][1]["end"] * stimInfo[sweepIdx][1]["sampleInteval"]
69756972
) ## stimuli end
6976-
print("start, end", start, end)
6973+
#print("start, end", start, end)
69776974
vhold = stimInfo[sweepIdx][1]["Vholding"]
69786975
curr = stimInfo[sweepIdx][1]["amplitude"]
69796976
sampleRate = 1 / stimInfo[sweepIdx][1]["sampleInteval"]
@@ -7166,7 +7163,7 @@ def getSingleTraceFeature(self, seriesIdx):
71667163
end_index = int(p + after_)
71677164
if start_index < 0 or end_index > max_sample:
71687165
continue
7169-
print(start_index, end_index)
7166+
#print(start_index, end_index)
71707167
waves[:, j] = v_filtered[start_index:end_index]
71717168
waves_dvdt[:, j] = dvdt1[start_index:end_index]
71727169
else:
@@ -7473,7 +7470,7 @@ def plot_alignedSpikes_SingleTrace(
74737470
axes[0].plot(t, v, "r", linewidth=2.5, alpha=0.6, zorder=10)
74747471
peakHeight_threhold = self.splitViewTab_FP.getParTreePars(
74757472
"Spike detection"
7476-
)["Spike detection parameters"][1]["peak voltage (min=-30;max=150)"][0]
7473+
)["Spike detection parameters"][1]["peak voltage (min=-100;max=150)"][0]
74777474
axes[0].axhline(y=peakHeight_threhold, color="r", linestyle="--")
74787475

74797476
axes[0].title.set_text(title)

patchview/utilitis/patchviewObjects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def importAllDats_clicked(self):
166166
for sliceN in sliceNumber:
167167
items.append(sliceName + sliceN)
168168
print("Unique slices found:")
169-
print(items)
169+
#print(items)
170170
sliceName, ok = QtWidgets.QInputDialog.getItem(
171171
self, "Input Dialog", "choose slice:", items, 0, False
172172
)

0 commit comments

Comments
 (0)