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.
Files changed (44) hide show
  1. {bmtool-0.8.2 → bmtool-0.8.2.1}/PKG-INFO +1 -1
  2. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/analysis/netcon_reports.py +15 -10
  3. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool.egg-info/PKG-INFO +1 -1
  4. {bmtool-0.8.2 → bmtool-0.8.2.1}/setup.py +1 -1
  5. {bmtool-0.8.2 → bmtool-0.8.2.1}/LICENSE +0 -0
  6. {bmtool-0.8.2 → bmtool-0.8.2.1}/README.md +0 -0
  7. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/SLURM.py +0 -0
  8. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/__init__.py +0 -0
  9. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/__main__.py +0 -0
  10. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/analysis/__init__.py +0 -0
  11. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/analysis/entrainment.py +0 -0
  12. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/analysis/lfp.py +0 -0
  13. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/analysis/spikes.py +0 -0
  14. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/bmplot/__init__.py +0 -0
  15. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/bmplot/connections.py +0 -0
  16. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/bmplot/entrainment.py +0 -0
  17. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/bmplot/lfp.py +0 -0
  18. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/bmplot/netcon_reports.py +0 -0
  19. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/bmplot/spikes.py +0 -0
  20. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/connectors.py +0 -0
  21. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/debug/__init__.py +0 -0
  22. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/debug/commands.py +0 -0
  23. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/debug/debug.py +0 -0
  24. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/graphs.py +0 -0
  25. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/manage.py +0 -0
  26. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/plot_commands.py +0 -0
  27. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/singlecell.py +0 -0
  28. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/stimulus/__init__.py +0 -0
  29. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/stimulus/assemblies.py +0 -0
  30. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/stimulus/core.py +0 -0
  31. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/stimulus/generators.py +0 -0
  32. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/synapses.py +0 -0
  33. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/util/__init__.py +0 -0
  34. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/util/commands.py +0 -0
  35. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/util/neuron/__init__.py +0 -0
  36. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/util/neuron/celltuner.py +0 -0
  37. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool/util/util.py +0 -0
  38. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool.egg-info/SOURCES.txt +0 -0
  39. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool.egg-info/dependency_links.txt +0 -0
  40. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool.egg-info/entry_points.txt +0 -0
  41. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool.egg-info/requires.txt +0 -0
  42. {bmtool-0.8.2 → bmtool-0.8.2.1}/bmtool.egg-info/top_level.txt +0 -0
  43. {bmtool-0.8.2 → bmtool-0.8.2.1}/pyproject.toml +0 -0
  44. {bmtool-0.8.2 → bmtool-0.8.2.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bmtool
3
- Version: 0.8.2
3
+ Version: 0.8.2.1
4
4
  Summary: BMTool
5
5
  Home-page: https://github.com/cyneuro/bmtool
6
6
  Download-URL:
@@ -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 use for labeling source synapses.
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 use for labeling target synapses.
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
- A 'connection_label' coordinate is also created with pipe-delimited values
42
- (e.g., 'Pyr|biophys->PV|biophys').
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, connection_label
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 with pipe-delimited format
198
- src_label = "|".join(src_label_parts)
199
- trg_label = "|".join(trg_label_parts)
200
- connection_labels.append(f"{src_label}->{trg_label}")
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 = {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bmtool
3
- Version: 0.8.2
3
+ Version: 0.8.2.1
4
4
  Summary: BMTool
5
5
  Home-page: https://github.com/cyneuro/bmtool
6
6
  Download-URL:
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
 
6
6
  setup(
7
7
  name="bmtool",
8
- version="0.8.2",
8
+ version="0.8.2.1",
9
9
  author="Neural Engineering Laboratory at the University of Missouri",
10
10
  author_email="gregglickert@mail.missouri.edu",
11
11
  description="BMTool",
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