bmtool 0.6.6.3__py3-none-any.whl → 0.6.6.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- bmtool/synapses.py +5 -7
- {bmtool-0.6.6.3.dist-info → bmtool-0.6.6.4.dist-info}/METADATA +1 -1
- {bmtool-0.6.6.3.dist-info → bmtool-0.6.6.4.dist-info}/RECORD +7 -7
- {bmtool-0.6.6.3.dist-info → bmtool-0.6.6.4.dist-info}/LICENSE +0 -0
- {bmtool-0.6.6.3.dist-info → bmtool-0.6.6.4.dist-info}/WHEEL +0 -0
- {bmtool-0.6.6.3.dist-info → bmtool-0.6.6.4.dist-info}/entry_points.txt +0 -0
- {bmtool-0.6.6.3.dist-info → bmtool-0.6.6.4.dist-info}/top_level.txt +0 -0
bmtool/synapses.py
CHANGED
@@ -197,7 +197,7 @@ class SynapseTuner:
|
|
197
197
|
syn_props = {var: slider.value for var, slider in self.dynamic_sliders.items()}
|
198
198
|
self._set_syn_prop(**syn_props)
|
199
199
|
|
200
|
-
# sets values based off optimizer
|
200
|
+
# sets values based off optimizer
|
201
201
|
if hasattr(self,'using_optimizer'):
|
202
202
|
for name, value in zip(self.param_names, self.params):
|
203
203
|
setattr(self.syn, name, value)
|
@@ -222,7 +222,7 @@ class SynapseTuner:
|
|
222
222
|
h.run()
|
223
223
|
|
224
224
|
current = np.array(self.rec_vectors[self.current_name])
|
225
|
-
syn_props = self._get_syn_prop(rise_interval=self.general_settings['rise_interval'])
|
225
|
+
syn_props = self._get_syn_prop(rise_interval=self.general_settings['rise_interval'],dt=h.dt)
|
226
226
|
current = (current - syn_props['baseline']) * 1000 # Convert to pA
|
227
227
|
current_integral = np.trapz(current, dx=h.dt) # pA·ms
|
228
228
|
|
@@ -277,7 +277,7 @@ class SynapseTuner:
|
|
277
277
|
if self.vclamp:
|
278
278
|
isyn = self.ivcl
|
279
279
|
else:
|
280
|
-
isyn = self.rec_vectors[
|
280
|
+
isyn = self.rec_vectors[self.current_name]
|
281
281
|
isyn = np.asarray(isyn)
|
282
282
|
tspk = np.asarray(self.tspk)
|
283
283
|
if tspk.size:
|
@@ -350,7 +350,7 @@ class SynapseTuner:
|
|
350
350
|
|
351
351
|
# Plot synaptic current (always included)
|
352
352
|
current = self.rec_vectors[self.current_name]
|
353
|
-
syn_prop = self._get_syn_prop(short=True)
|
353
|
+
syn_prop = self._get_syn_prop(short=True,dt=h.dt)
|
354
354
|
current = (current - syn_prop['baseline'])
|
355
355
|
current = current * 1000
|
356
356
|
|
@@ -447,13 +447,12 @@ class SynapseTuner:
|
|
447
447
|
"""
|
448
448
|
isyn = np.array(self.rec_vectors[self.current_name].to_python())
|
449
449
|
tspk = np.append(np.asarray(self.tspk), h.tstop)
|
450
|
-
syn_prop = self._get_syn_prop(short=True)
|
450
|
+
syn_prop = self._get_syn_prop(short=True,dt=h.dt)
|
451
451
|
# print("syn_prp[sign] = " + str(syn_prop['sign']))
|
452
452
|
isyn = (isyn - syn_prop['baseline'])
|
453
453
|
isyn *= syn_prop['sign']
|
454
454
|
ispk = np.floor((tspk + self.general_settings['delay']) / h.dt).astype(int)
|
455
455
|
|
456
|
-
|
457
456
|
try:
|
458
457
|
amp = [isyn[ispk[i]:ispk[i + 1]].max() for i in range(ispk.size - 1)]
|
459
458
|
# indexs of where the max of the synaptic current is at. This is then plotted
|
@@ -1159,7 +1158,6 @@ class SynapseOptimizer:
|
|
1159
1158
|
self.tuner.SingleEvent(plot_and_print=True)
|
1160
1159
|
|
1161
1160
|
|
1162
|
-
|
1163
1161
|
# dataclass means just init the typehints as self.typehint. looks a bit cleaner
|
1164
1162
|
@dataclass
|
1165
1163
|
class GapOptimizationResult:
|
@@ -7,7 +7,7 @@ bmtool/graphs.py,sha256=K8BiughRUeXFVvAgo8UzrwpSClIVg7UfmIcvtEsEsk0,6020
|
|
7
7
|
bmtool/manage.py,sha256=_lCU0qBQZ4jSxjzAJUd09JEetb--cud7KZgxQFbLGSY,657
|
8
8
|
bmtool/plot_commands.py,sha256=Tqujyf0c0u8olhiHOMwgUSJXIIE1hgjv6otb25G9cA0,12298
|
9
9
|
bmtool/singlecell.py,sha256=MQiLucsI6OBIjtcJra3Z9PTFQOE-Zn5ST-R9SmFvrbQ,27049
|
10
|
-
bmtool/synapses.py,sha256=
|
10
|
+
bmtool/synapses.py,sha256=gIkfLhKDG2dHHCVJJoKuQrFn_Qut843bfk_-s97wu6c,54553
|
11
11
|
bmtool/debug/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
12
|
bmtool/debug/commands.py,sha256=AwtcR7BUUheM0NxvU1Nu234zCdpobhJv5noX8x5K2vY,583
|
13
13
|
bmtool/debug/debug.py,sha256=xqnkzLiH3s-tS26Y5lZZL62qR2evJdi46Gud-HzxEN4,207
|
@@ -16,9 +16,9 @@ bmtool/util/commands.py,sha256=zJF-fiLk0b8LyzHDfvewUyS7iumOxVnj33IkJDzux4M,64396
|
|
16
16
|
bmtool/util/util.py,sha256=00vOAwTVIifCqouBoFoT0lBashl4fCalrk8fhg_Uq4c,56654
|
17
17
|
bmtool/util/neuron/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
18
18
|
bmtool/util/neuron/celltuner.py,sha256=xSRpRN6DhPFz4q5buq_W8UmsD7BbUrkzYBEbKVloYss,87194
|
19
|
-
bmtool-0.6.6.
|
20
|
-
bmtool-0.6.6.
|
21
|
-
bmtool-0.6.6.
|
22
|
-
bmtool-0.6.6.
|
23
|
-
bmtool-0.6.6.
|
24
|
-
bmtool-0.6.6.
|
19
|
+
bmtool-0.6.6.4.dist-info/LICENSE,sha256=qrXg2jj6kz5d0EnN11hllcQt2fcWVNumx0xNbV05nyM,1068
|
20
|
+
bmtool-0.6.6.4.dist-info/METADATA,sha256=loQf1_yqp2RYGGrghu71zSt4TnBtlmBpOSGXlm_21JY,20226
|
21
|
+
bmtool-0.6.6.4.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
22
|
+
bmtool-0.6.6.4.dist-info/entry_points.txt,sha256=0-BHZ6nUnh0twWw9SXNTiRmKjDnb1VO2DfG_-oprhAc,45
|
23
|
+
bmtool-0.6.6.4.dist-info/top_level.txt,sha256=gpd2Sj-L9tWbuJEd5E8C8S8XkNm5yUE76klUYcM-eWM,7
|
24
|
+
bmtool-0.6.6.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|