bmtool 0.6.9.5__py3-none-any.whl → 0.6.9.7__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/bmplot.py +14 -14
- {bmtool-0.6.9.5.dist-info → bmtool-0.6.9.7.dist-info}/METADATA +1 -1
- {bmtool-0.6.9.5.dist-info → bmtool-0.6.9.7.dist-info}/RECORD +7 -7
- {bmtool-0.6.9.5.dist-info → bmtool-0.6.9.7.dist-info}/WHEEL +0 -0
- {bmtool-0.6.9.5.dist-info → bmtool-0.6.9.7.dist-info}/entry_points.txt +0 -0
- {bmtool-0.6.9.5.dist-info → bmtool-0.6.9.7.dist-info}/licenses/LICENSE +0 -0
- {bmtool-0.6.9.5.dist-info → bmtool-0.6.9.7.dist-info}/top_level.txt +0 -0
bmtool/bmplot.py
CHANGED
@@ -1148,14 +1148,14 @@ def plot_entrainment():
|
|
1148
1148
|
"""
|
1149
1149
|
pass
|
1150
1150
|
|
1151
|
-
def plot_3d_positions(config=None,
|
1151
|
+
def plot_3d_positions(config=None, sources=None, sid=None, title=None, save_file=None, subset=None):
|
1152
1152
|
"""
|
1153
1153
|
Plots a 3D graph of all cells with x, y, z location.
|
1154
1154
|
|
1155
1155
|
Parameters:
|
1156
1156
|
- config: A BMTK simulation config
|
1157
|
-
-
|
1158
|
-
-
|
1157
|
+
- sources: Which network(s) to plot
|
1158
|
+
- sid: How to name cell groups
|
1159
1159
|
- title: Plot title
|
1160
1160
|
- save_file: If plot should be saved
|
1161
1161
|
- subset: Take every Nth row. This will make plotting large network graphs easier to see.
|
@@ -1164,11 +1164,11 @@ def plot_3d_positions(config=None, populations_list=None, group_by=None, title=N
|
|
1164
1164
|
if not config:
|
1165
1165
|
raise Exception("config not defined")
|
1166
1166
|
|
1167
|
-
if
|
1168
|
-
|
1167
|
+
if sources is None:
|
1168
|
+
sources = "all"
|
1169
1169
|
|
1170
1170
|
# Set group keys (e.g., node types)
|
1171
|
-
group_keys =
|
1171
|
+
group_keys = sid
|
1172
1172
|
if title is None:
|
1173
1173
|
title = "3D positions"
|
1174
1174
|
|
@@ -1176,10 +1176,10 @@ def plot_3d_positions(config=None, populations_list=None, group_by=None, title=N
|
|
1176
1176
|
nodes = util.load_nodes_from_config(config)
|
1177
1177
|
|
1178
1178
|
# Get the list of populations to plot
|
1179
|
-
if 'all' in
|
1179
|
+
if 'all' in sources:
|
1180
1180
|
populations = list(nodes)
|
1181
1181
|
else:
|
1182
|
-
populations =
|
1182
|
+
populations = sources.split(",")
|
1183
1183
|
|
1184
1184
|
# Split group_by into list
|
1185
1185
|
group_keys = group_keys.split(",")
|
@@ -1247,25 +1247,25 @@ def plot_3d_positions(config=None, populations_list=None, group_by=None, title=N
|
|
1247
1247
|
|
1248
1248
|
return ax
|
1249
1249
|
|
1250
|
-
def plot_3d_cell_rotation(config=None,
|
1250
|
+
def plot_3d_cell_rotation(config=None, sources=None, sids=None, title=None, save_file=None, quiver_length=None, arrow_length_ratio=None, group=None, subset=None):
|
1251
1251
|
from scipy.spatial.transform import Rotation as R
|
1252
1252
|
if not config:
|
1253
1253
|
raise Exception("config not defined")
|
1254
1254
|
|
1255
|
-
if
|
1256
|
-
|
1255
|
+
if sources is None:
|
1256
|
+
sources = ["all"]
|
1257
1257
|
|
1258
|
-
group_keys =
|
1258
|
+
group_keys = sids.split(",") if sids else []
|
1259
1259
|
|
1260
1260
|
if title is None:
|
1261
1261
|
title = "Cell rotations"
|
1262
1262
|
|
1263
1263
|
nodes = util.load_nodes_from_config(config)
|
1264
1264
|
|
1265
|
-
if 'all' in
|
1265
|
+
if 'all' in sources:
|
1266
1266
|
populations = list(nodes)
|
1267
1267
|
else:
|
1268
|
-
populations =
|
1268
|
+
populations = sources
|
1269
1269
|
|
1270
1270
|
fig = plt.figure(figsize=(10, 10))
|
1271
1271
|
ax = fig.add_subplot(111, projection='3d')
|
@@ -1,7 +1,7 @@
|
|
1
1
|
bmtool/SLURM.py,sha256=PST_jOD5ZmwbJj15Tgq3UIvdq4FYN4EkPuDt66P8OXU,20136
|
2
2
|
bmtool/__init__.py,sha256=ZStTNkAJHJxG7Pwiy5UgCzC4KlhMS5pUNPtUJZVwL_Y,136
|
3
3
|
bmtool/__main__.py,sha256=TmFkmDxjZ6250nYD4cgGhn-tbJeEm0u-EMz2ajAN9vE,650
|
4
|
-
bmtool/bmplot.py,sha256=
|
4
|
+
bmtool/bmplot.py,sha256=TPkdqenzY_ovAISSiGFk98pmoe6Q5_2WoZg9o7nKNWI,61873
|
5
5
|
bmtool/connectors.py,sha256=hWkUUcJ4tmas8NDOFPPjQT-TgTlPcpjuZsYyAW2WkPA,72242
|
6
6
|
bmtool/graphs.py,sha256=K8BiughRUeXFVvAgo8UzrwpSClIVg7UfmIcvtEsEsk0,6020
|
7
7
|
bmtool/manage.py,sha256=_lCU0qBQZ4jSxjzAJUd09JEetb--cud7KZgxQFbLGSY,657
|
@@ -19,9 +19,9 @@ bmtool/util/commands.py,sha256=zJF-fiLk0b8LyzHDfvewUyS7iumOxVnj33IkJDzux4M,64396
|
|
19
19
|
bmtool/util/util.py,sha256=00vOAwTVIifCqouBoFoT0lBashl4fCalrk8fhg_Uq4c,56654
|
20
20
|
bmtool/util/neuron/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
21
21
|
bmtool/util/neuron/celltuner.py,sha256=xSRpRN6DhPFz4q5buq_W8UmsD7BbUrkzYBEbKVloYss,87194
|
22
|
-
bmtool-0.6.9.
|
23
|
-
bmtool-0.6.9.
|
24
|
-
bmtool-0.6.9.
|
25
|
-
bmtool-0.6.9.
|
26
|
-
bmtool-0.6.9.
|
27
|
-
bmtool-0.6.9.
|
22
|
+
bmtool-0.6.9.7.dist-info/licenses/LICENSE,sha256=qrXg2jj6kz5d0EnN11hllcQt2fcWVNumx0xNbV05nyM,1068
|
23
|
+
bmtool-0.6.9.7.dist-info/METADATA,sha256=gT33ToBrthsy178V7rOA6nuZsWJCSxl4cYwhC8zwwls,20478
|
24
|
+
bmtool-0.6.9.7.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
25
|
+
bmtool-0.6.9.7.dist-info/entry_points.txt,sha256=0-BHZ6nUnh0twWw9SXNTiRmKjDnb1VO2DfG_-oprhAc,45
|
26
|
+
bmtool-0.6.9.7.dist-info/top_level.txt,sha256=gpd2Sj-L9tWbuJEd5E8C8S8XkNm5yUE76klUYcM-eWM,7
|
27
|
+
bmtool-0.6.9.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|