bmtool 0.5.6.1__py3-none-any.whl → 0.5.6.2__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 +17 -1
- {bmtool-0.5.6.1.dist-info → bmtool-0.5.6.2.dist-info}/METADATA +1 -1
- {bmtool-0.5.6.1.dist-info → bmtool-0.5.6.2.dist-info}/RECORD +7 -7
- {bmtool-0.5.6.1.dist-info → bmtool-0.5.6.2.dist-info}/LICENSE +0 -0
- {bmtool-0.5.6.1.dist-info → bmtool-0.5.6.2.dist-info}/WHEEL +0 -0
- {bmtool-0.5.6.1.dist-info → bmtool-0.5.6.2.dist-info}/entry_points.txt +0 -0
- {bmtool-0.5.6.1.dist-info → bmtool-0.5.6.2.dist-info}/top_level.txt +0 -0
bmtool/synapses.py
CHANGED
@@ -55,10 +55,26 @@ class SynapseTuner:
|
|
55
55
|
self.other_vars_to_record = other_vars_to_record
|
56
56
|
|
57
57
|
if slider_vars:
|
58
|
-
|
58
|
+
# Start by filtering based on keys in slider_vars
|
59
|
+
self.slider_vars = {key: value for key, value in self.synaptic_props.items() if key in slider_vars}
|
60
|
+
# Iterate over slider_vars and check for missing keys in self.synaptic_props
|
61
|
+
for key in slider_vars:
|
62
|
+
# If the key is missing from synaptic_props, get the value using getattr
|
63
|
+
if key not in self.synaptic_props:
|
64
|
+
try:
|
65
|
+
# Get the alternative value from getattr dynamically
|
66
|
+
self.set_up_cell()
|
67
|
+
self.set_up_synapse()
|
68
|
+
value = getattr(self.syn,key)
|
69
|
+
print(value)
|
70
|
+
self.slider_vars[key] = value
|
71
|
+
except AttributeError as e:
|
72
|
+
print(f"Error accessing '{key}' in syn {self.syn}: {e}")
|
73
|
+
|
59
74
|
else:
|
60
75
|
self.slider_vars = self.synaptic_props
|
61
76
|
|
77
|
+
|
62
78
|
h.tstop = general_settings['tstart'] + general_settings['tdur']
|
63
79
|
h.dt = general_settings['dt'] # Time step (resolution) of the simulation in ms
|
64
80
|
h.steps_per_ms = 1 / h.dt
|
@@ -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=Q4poQvG9fw0jlyMmHFzbRPrpcEkPz5MKS8Guuo73Bzs,26849
|
10
|
-
bmtool/synapses.py,sha256=
|
10
|
+
bmtool/synapses.py,sha256=wKLVGSnsDu_9cJGZoZTeO-RYqRQoZ-Q_LLYHi4fJkmg,27501
|
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=24E5rUoDU86nqypDF4uZJkuJKO1BrwrQE8lZzAxu1kw,56770
|
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.5.6.
|
20
|
-
bmtool-0.5.6.
|
21
|
-
bmtool-0.5.6.
|
22
|
-
bmtool-0.5.6.
|
23
|
-
bmtool-0.5.6.
|
24
|
-
bmtool-0.5.6.
|
19
|
+
bmtool-0.5.6.2.dist-info/LICENSE,sha256=qrXg2jj6kz5d0EnN11hllcQt2fcWVNumx0xNbV05nyM,1068
|
20
|
+
bmtool-0.5.6.2.dist-info/METADATA,sha256=Gf0JkdWfaJgYR3_mx-nlr3y2S_5i0kZT5sCckT-Up0E,24107
|
21
|
+
bmtool-0.5.6.2.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
22
|
+
bmtool-0.5.6.2.dist-info/entry_points.txt,sha256=0-BHZ6nUnh0twWw9SXNTiRmKjDnb1VO2DfG_-oprhAc,45
|
23
|
+
bmtool-0.5.6.2.dist-info/top_level.txt,sha256=gpd2Sj-L9tWbuJEd5E8C8S8XkNm5yUE76klUYcM-eWM,7
|
24
|
+
bmtool-0.5.6.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|