bmtool 0.8.2__tar.gz → 0.8.2.1__tar.gz
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-0.8.2 → bmtool-0.8.2.1}/PKG-INFO +1 -1
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/analysis/netcon_reports.py +15 -10
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool.egg-info/PKG-INFO +1 -1
- {bmtool-0.8.2 → bmtool-0.8.2.1}/setup.py +1 -1
- {bmtool-0.8.2 → bmtool-0.8.2.1}/LICENSE +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/README.md +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/SLURM.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/__init__.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/__main__.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/analysis/__init__.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/analysis/entrainment.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/analysis/lfp.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/analysis/spikes.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/bmplot/__init__.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/bmplot/connections.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/bmplot/entrainment.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/bmplot/lfp.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/bmplot/netcon_reports.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/bmplot/spikes.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/connectors.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/debug/__init__.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/debug/commands.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/debug/debug.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/graphs.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/manage.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/plot_commands.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/singlecell.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/stimulus/__init__.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/stimulus/assemblies.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/stimulus/core.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/stimulus/generators.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/synapses.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/util/__init__.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/util/commands.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/util/neuron/__init__.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/util/neuron/celltuner.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/util/util.py +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool.egg-info/SOURCES.txt +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool.egg-info/dependency_links.txt +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool.egg-info/entry_points.txt +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool.egg-info/requires.txt +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool.egg-info/top_level.txt +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/pyproject.toml +0 -0
- {bmtool-0.8.2 → bmtool-0.8.2.1}/setup.cfg +0 -0
|
@@ -26,10 +26,10 @@ def load_synapse_report(
|
|
|
26
26
|
Edge name in format 'source_to_target' (e.g., 'thalamic_tone_to_LA')
|
|
27
27
|
This determines which source and target networks to load for population mapping
|
|
28
28
|
source_groupby : str or List[str]
|
|
29
|
-
Node property column name(s) to
|
|
29
|
+
Node property column name(s) to load as coordinates for filtering.
|
|
30
30
|
Examples: 'pop_name', ['pop_name', 'model_type']
|
|
31
31
|
target_groupby : str or List[str]
|
|
32
|
-
Node property column name(s) to
|
|
32
|
+
Node property column name(s) to load as coordinates for filtering.
|
|
33
33
|
Examples: 'pop_name', ['pop_name', 'model_type']
|
|
34
34
|
|
|
35
35
|
Returns:
|
|
@@ -38,8 +38,8 @@ def load_synapse_report(
|
|
|
38
38
|
An xarray containing the synapse report data with proper population labeling.
|
|
39
39
|
For each column in source_groupby/target_groupby, separate coordinates are created:
|
|
40
40
|
'source_{column}', 'target_{column}', etc.
|
|
41
|
-
|
|
42
|
-
(e.g., 'Pyr
|
|
41
|
+
The 'connection_label' coordinate uses only pop_name for simple labeling
|
|
42
|
+
(e.g., 'Pyr->PV'), while all groupby columns are available as coordinates for filtering.
|
|
43
43
|
|
|
44
44
|
Examples:
|
|
45
45
|
---------
|
|
@@ -52,7 +52,7 @@ def load_synapse_report(
|
|
|
52
52
|
target_groupby='pop_name'
|
|
53
53
|
)
|
|
54
54
|
|
|
55
|
-
# Group by multiple columns:
|
|
55
|
+
# Group by multiple columns for filtering (connection_label still uses only pop_name):
|
|
56
56
|
ds = load_synapse_report(
|
|
57
57
|
h5_file_path='output/synapse_report.h5',
|
|
58
58
|
config_path='simulation_config.json',
|
|
@@ -61,7 +61,8 @@ def load_synapse_report(
|
|
|
61
61
|
target_groupby=['pop_name', 'model_type']
|
|
62
62
|
)
|
|
63
63
|
# Returns dataset with coordinates:
|
|
64
|
-
# source_pop_name, source_model_type, target_pop_name, target_model_type
|
|
64
|
+
# source_pop_name, source_model_type, target_pop_name, target_model_type
|
|
65
|
+
# connection_label (based on pop_name only)
|
|
65
66
|
"""
|
|
66
67
|
# Normalize groupby parameters to lists
|
|
67
68
|
if isinstance(source_groupby, str):
|
|
@@ -194,10 +195,14 @@ def load_synapse_report(
|
|
|
194
195
|
target_values[col].append(val)
|
|
195
196
|
trg_label_parts.append(str(val))
|
|
196
197
|
|
|
197
|
-
# Create connection label
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
198
|
+
# Create connection label using only pop_name (not all groupby columns)
|
|
199
|
+
if src_id == -1:
|
|
200
|
+
src_pop = src_external_values.get('pop_name', 'unknown')
|
|
201
|
+
else:
|
|
202
|
+
src_pop = source_mappings['pop_name'].get(src_id, f"unknown_{src_id}")
|
|
203
|
+
|
|
204
|
+
trg_pop = target_mappings['pop_name'].get(trg_id, f"unknown_{trg_id}")
|
|
205
|
+
connection_labels.append(f"{src_pop}->{trg_pop}")
|
|
201
206
|
|
|
202
207
|
# Create coordinates dictionary dynamically based on groupby columns
|
|
203
208
|
coords = {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|