bmtool 0.6.9.26__py3-none-any.whl → 0.6.9.27__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.
@@ -4,7 +4,7 @@ import xarray as xr
4
4
  import pandas as pd
5
5
  from ..util.util import load_nodes_from_config
6
6
 
7
- def load_synapse_report(h5_file_path, config_path):
7
+ def load_synapse_report(h5_file_path, config_path, network):
8
8
  """
9
9
  Load and process a synapse report from a bmtk simulation into an xarray.
10
10
 
@@ -23,7 +23,7 @@ def load_synapse_report(h5_file_path, config_path):
23
23
  # Load the h5 file
24
24
  with h5py.File(h5_file_path, 'r') as file:
25
25
  # Get the report data
26
- report = file['report']['cortex']
26
+ report = file['report'][network]
27
27
  mapping = report['mapping']
28
28
 
29
29
  # Get the data - shape is (n_timesteps, n_synapses)
@@ -47,10 +47,10 @@ def load_synapse_report(h5_file_path, config_path):
47
47
 
48
48
  # Load node information
49
49
  nodes = load_nodes_from_config(config_path)
50
- cortex_nodes = nodes['cortex']
50
+ nodes = nodes[network]
51
51
 
52
52
  # Create a mapping from node IDs to population names
53
- node_to_pop = dict(zip(cortex_nodes.index, cortex_nodes['pop_name']))
53
+ node_to_pop = dict(zip(nodes.index, nodes['pop_name']))
54
54
 
55
55
  # Get the number of synapses
56
56
  n_synapses = data.shape[1]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bmtool
3
- Version: 0.6.9.26
3
+ Version: 0.6.9.27
4
4
  Summary: BMTool
5
5
  Home-page: https://github.com/cyneuro/bmtool
6
6
  Download-URL:
@@ -11,7 +11,7 @@ bmtool/synapses.py,sha256=Ow2fZavA_3_5BYCjcgPjW0YsyVOetn1wvLxL7hQvbZo,64556
11
11
  bmtool/analysis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  bmtool/analysis/entrainment.py,sha256=GCytdEdCbHwF5yJ4vfK947YLxbBfA88-zSnf2n26fjk,17618
13
13
  bmtool/analysis/lfp.py,sha256=pMXhqWO5TB-B1cIkR9ZhPgJZi7zpiqrGdRb-JNjjI2Y,18707
14
- bmtool/analysis/netcon_reports.py,sha256=WWh12H9gjEZXhI_q7RErgGQ9iSPoTvCUnUjwNGxRwsY,3071
14
+ bmtool/analysis/netcon_reports.py,sha256=7moyoUC45Cl1_6sGqwZ5aKphK_8i4AimroePXcgUnIo,3057
15
15
  bmtool/analysis/spikes.py,sha256=x24kd0RUhumJkiunfHNEE7mM6JUqdWy1gqabmkMM4cU,14129
16
16
  bmtool/debug/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  bmtool/debug/commands.py,sha256=AwtcR7BUUheM0NxvU1Nu234zCdpobhJv5noX8x5K2vY,583
@@ -21,9 +21,9 @@ bmtool/util/commands.py,sha256=zJF-fiLk0b8LyzHDfvewUyS7iumOxVnj33IkJDzux4M,64396
21
21
  bmtool/util/util.py,sha256=XR0qZnv_Q47jMBKQpFzCSkCuKe9u8L3YSGJAOpP2zT0,57630
22
22
  bmtool/util/neuron/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
23
  bmtool/util/neuron/celltuner.py,sha256=xSRpRN6DhPFz4q5buq_W8UmsD7BbUrkzYBEbKVloYss,87194
24
- bmtool-0.6.9.26.dist-info/licenses/LICENSE,sha256=qrXg2jj6kz5d0EnN11hllcQt2fcWVNumx0xNbV05nyM,1068
25
- bmtool-0.6.9.26.dist-info/METADATA,sha256=Gmua9ix4SE_bNrtjQQjAFGZA3os31l3-8FC4I4Su36Q,2769
26
- bmtool-0.6.9.26.dist-info/WHEEL,sha256=ooBFpIzZCPdw3uqIQsOo4qqbA4ZRPxHnOH7peeONza0,91
27
- bmtool-0.6.9.26.dist-info/entry_points.txt,sha256=0-BHZ6nUnh0twWw9SXNTiRmKjDnb1VO2DfG_-oprhAc,45
28
- bmtool-0.6.9.26.dist-info/top_level.txt,sha256=gpd2Sj-L9tWbuJEd5E8C8S8XkNm5yUE76klUYcM-eWM,7
29
- bmtool-0.6.9.26.dist-info/RECORD,,
24
+ bmtool-0.6.9.27.dist-info/licenses/LICENSE,sha256=qrXg2jj6kz5d0EnN11hllcQt2fcWVNumx0xNbV05nyM,1068
25
+ bmtool-0.6.9.27.dist-info/METADATA,sha256=nAFsZqm3J7bCCj-dx0V9YZM6NWswxxZ26VAu2JeOvQM,2769
26
+ bmtool-0.6.9.27.dist-info/WHEEL,sha256=wXxTzcEDnjrTwFYjLPcsW_7_XihufBwmpiBeiXNBGEA,91
27
+ bmtool-0.6.9.27.dist-info/entry_points.txt,sha256=0-BHZ6nUnh0twWw9SXNTiRmKjDnb1VO2DfG_-oprhAc,45
28
+ bmtool-0.6.9.27.dist-info/top_level.txt,sha256=gpd2Sj-L9tWbuJEd5E8C8S8XkNm5yUE76klUYcM-eWM,7
29
+ bmtool-0.6.9.27.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.0.1)
2
+ Generator: setuptools (80.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5