canns 0.12.7__py3-none-any.whl → 0.13.0__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.
Files changed (37) hide show
  1. canns/analyzer/data/__init__.py +3 -11
  2. canns/analyzer/data/asa/__init__.py +74 -0
  3. canns/analyzer/data/asa/cohospace.py +905 -0
  4. canns/analyzer/data/asa/config.py +246 -0
  5. canns/analyzer/data/asa/decode.py +448 -0
  6. canns/analyzer/data/asa/embedding.py +269 -0
  7. canns/analyzer/data/asa/filters.py +208 -0
  8. canns/analyzer/data/asa/fr.py +439 -0
  9. canns/analyzer/data/asa/path.py +389 -0
  10. canns/analyzer/data/asa/plotting.py +1276 -0
  11. canns/analyzer/data/asa/tda.py +901 -0
  12. canns/analyzer/data/legacy/__init__.py +6 -0
  13. canns/analyzer/data/{cann1d.py → legacy/cann1d.py} +2 -2
  14. canns/analyzer/data/{cann2d.py → legacy/cann2d.py} +3 -3
  15. canns/analyzer/visualization/core/backend.py +1 -1
  16. canns/analyzer/visualization/core/config.py +77 -0
  17. canns/analyzer/visualization/core/rendering.py +10 -6
  18. canns/analyzer/visualization/energy_plots.py +22 -8
  19. canns/analyzer/visualization/spatial_plots.py +31 -11
  20. canns/analyzer/visualization/theta_sweep_plots.py +15 -6
  21. canns/pipeline/__init__.py +4 -8
  22. canns/pipeline/asa/__init__.py +21 -0
  23. canns/pipeline/asa/__main__.py +11 -0
  24. canns/pipeline/asa/app.py +1000 -0
  25. canns/pipeline/asa/runner.py +1095 -0
  26. canns/pipeline/asa/screens.py +215 -0
  27. canns/pipeline/asa/state.py +248 -0
  28. canns/pipeline/asa/styles.tcss +221 -0
  29. canns/pipeline/asa/widgets.py +233 -0
  30. canns/pipeline/gallery/__init__.py +7 -0
  31. canns/task/open_loop_navigation.py +3 -1
  32. {canns-0.12.7.dist-info → canns-0.13.0.dist-info}/METADATA +6 -3
  33. {canns-0.12.7.dist-info → canns-0.13.0.dist-info}/RECORD +36 -17
  34. {canns-0.12.7.dist-info → canns-0.13.0.dist-info}/entry_points.txt +1 -0
  35. canns/pipeline/theta_sweep.py +0 -573
  36. {canns-0.12.7.dist-info → canns-0.13.0.dist-info}/WHEEL +0 -0
  37. {canns-0.12.7.dist-info → canns-0.13.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,13 +1,5 @@
1
- """Data analysis utilities for experimental and synthetic neural data.
1
+ """Data analysis utilities for experimental and synthetic neural data."""
2
2
 
3
- This module provides tools for analyzing neural recordings (spike trains,
4
- firing rates) and extracting features like bump positions, topological
5
- structures, and population dynamics.
6
- """
3
+ from .asa import * # noqa: F401,F403
7
4
 
8
- from . import cann1d, cann2d
9
-
10
- __all__ = [
11
- "cann1d",
12
- "cann2d",
13
- ]
5
+ __all__ = list(locals().get("__all__", []))
@@ -0,0 +1,74 @@
1
+ from __future__ import annotations
2
+
3
+ # Coho-space analysis + visualization
4
+ from .cohospace import (
5
+ compute_cohoscore,
6
+ plot_cohospace_neuron,
7
+ plot_cohospace_population,
8
+ plot_cohospace_trajectory,
9
+ )
10
+ from .config import (
11
+ CANN2DError,
12
+ CANN2DPlotConfig,
13
+ Constants,
14
+ DataLoadError,
15
+ ProcessingError,
16
+ SpikeEmbeddingConfig,
17
+ TDAConfig,
18
+ )
19
+ from .decode import decode_circular_coordinates, decode_circular_coordinates_multi
20
+ from .embedding import embed_spike_trains
21
+ from .fr import (
22
+ FRMResult,
23
+ compute_fr_heatmap_matrix,
24
+ compute_frm,
25
+ plot_frm,
26
+ save_fr_heatmap_png,
27
+ )
28
+
29
+ # Path utilities
30
+ from .path import align_coords_to_position, apply_angle_scale
31
+
32
+ # Higher-level plotting helpers
33
+ from .plotting import (
34
+ plot_2d_bump_on_manifold,
35
+ plot_3d_bump_on_torus,
36
+ plot_cohomap,
37
+ plot_cohomap_multi,
38
+ plot_path_compare,
39
+ plot_projection,
40
+ )
41
+
42
+ # TDA entry point
43
+ from .tda import tda_vis
44
+
45
+ __all__ = [
46
+ "SpikeEmbeddingConfig",
47
+ "TDAConfig",
48
+ "CANN2DPlotConfig",
49
+ "Constants",
50
+ "CANN2DError",
51
+ "DataLoadError",
52
+ "ProcessingError",
53
+ "embed_spike_trains",
54
+ "tda_vis",
55
+ "decode_circular_coordinates",
56
+ "decode_circular_coordinates_multi",
57
+ "plot_projection",
58
+ "plot_path_compare",
59
+ "plot_cohomap",
60
+ "plot_cohomap_multi",
61
+ "plot_3d_bump_on_torus",
62
+ "plot_2d_bump_on_manifold",
63
+ "compute_fr_heatmap_matrix",
64
+ "save_fr_heatmap_png",
65
+ "FRMResult",
66
+ "compute_frm",
67
+ "plot_frm",
68
+ "plot_cohospace_trajectory",
69
+ "plot_cohospace_neuron",
70
+ "plot_cohospace_population",
71
+ "compute_cohoscore",
72
+ "align_coords_to_position",
73
+ "apply_angle_scale",
74
+ ]