python-intan 0.0.3__tar.gz → 0.3.0__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 (164) hide show
  1. python_intan-0.3.0/CHANGELOG.md +369 -0
  2. python_intan-0.3.0/CITATION.cff +14 -0
  3. python_intan-0.3.0/CONTRIBUTING.md +441 -0
  4. python_intan-0.3.0/MANIFEST.in +20 -0
  5. python_intan-0.3.0/PKG-INFO +304 -0
  6. python_intan-0.3.0/README.md +239 -0
  7. python_intan-0.3.0/examples/3D_printed_arm_control/README.md +16 -0
  8. python_intan-0.3.0/examples/3D_printed_arm_control/code.py +248 -0
  9. python_intan-0.3.0/examples/3D_printed_arm_control/pico_tests/pico_servo_sweep.py +38 -0
  10. {python_intan-0.0.3/tests → python_intan-0.3.0/examples/3D_printed_arm_control/pico_tests}/test_RHD2164_SPI.py +12 -12
  11. python_intan-0.3.0/examples/LSL/README.md +177 -0
  12. python_intan-0.3.0/examples/LSL/lsl_marker_sub.py +31 -0
  13. python_intan-0.3.0/examples/LSL/lsl_rms_barplot.py +237 -0
  14. python_intan-0.3.0/examples/LSL/lsl_stacked_plot.py +51 -0
  15. python_intan-0.3.0/examples/LSL/lsl_waveform_viewer.py +141 -0
  16. python_intan-0.3.0/examples/RHD2164_wireless/code.py +361 -0
  17. python_intan-0.3.0/examples/RHXDevice/README.md +215 -0
  18. python_intan-0.3.0/examples/RHXDevice/compare_rhd_vs_stream.py +116 -0
  19. python_intan-0.3.0/examples/RHXDevice/multichannel_stream_plot.py +117 -0
  20. python_intan-0.3.0/examples/RHXDevice/record_demo.py +76 -0
  21. python_intan-0.3.0/examples/RHXDevice/scrolling_live.py +128 -0
  22. python_intan-0.3.0/examples/RHXDevice/tcp_benchmark.py +163 -0
  23. python_intan-0.3.0/examples/Read_Files/README.md +38 -0
  24. python_intan-0.3.0/examples/Read_Files/load_csv_demo.py +38 -0
  25. python_intan-0.3.0/examples/Read_Files/load_dat_demo.py +46 -0
  26. python_intan-0.3.0/examples/Read_Files/load_rhd_demo.py +36 -0
  27. python_intan-0.3.0/examples/Read_Files/parse_dat_data.py +117 -0
  28. python_intan-0.3.0/examples/Read_Files/parse_rhd_data.py +106 -0
  29. python_intan-0.3.0/examples/Read_Files/segment_emg_from_events.py +263 -0
  30. python_intan-0.3.0/examples/applications/README.md +47 -0
  31. python_intan-0.3.0/examples/applications/dataset_builder_gui.py +997 -0
  32. python_intan-0.3.0/examples/applications/emg_file_viewer.py +1176 -0
  33. python_intan-0.3.0/examples/applications/emg_file_viewer_clean.py +15 -0
  34. python_intan-0.3.0/examples/applications/emg_file_viewer_popup.py +685 -0
  35. python_intan-0.3.0/examples/applications/gesture_pipeline_gui.py +1621 -0
  36. python_intan-0.3.0/examples/applications/gesture_pipeline_profile.json +39 -0
  37. python_intan-0.3.0/examples/applications/run_emg_viewer.py +23 -0
  38. python_intan-0.3.0/examples/applications/run_trial_selector.py +23 -0
  39. python_intan-0.3.0/examples/exo_classifier/1_build_training_dataset.py +689 -0
  40. python_intan-0.3.0/examples/exo_classifier/2_train_model.py +540 -0
  41. python_intan-0.3.0/examples/exo_classifier/3_predict_realtime.py +729 -0
  42. python_intan-0.3.0/examples/exo_classifier/README_PAPER_REPLICATION.md +340 -0
  43. python_intan-0.3.0/examples/exo_classifier/channel_quality_helpers.py +203 -0
  44. python_intan-0.3.0/examples/exo_classifier/test_emg_strips.py +510 -0
  45. python_intan-0.3.0/examples/finger_kinematics/.kinematics_config.example +12 -0
  46. python_intan-0.3.0/examples/finger_kinematics/1_synchronize_emg_video.py +423 -0
  47. python_intan-0.3.0/examples/finger_kinematics/2_extract_joint_angles.py +340 -0
  48. python_intan-0.3.0/examples/finger_kinematics/3_calibrate_and_normalize.py +378 -0
  49. python_intan-0.3.0/examples/finger_kinematics/4_build_dataset.py +842 -0
  50. python_intan-0.3.0/examples/finger_kinematics/5_train_model.py +341 -0
  51. python_intan-0.3.0/examples/finger_kinematics/6_predict.py +601 -0
  52. python_intan-0.3.0/examples/finger_kinematics/7_analyze_predictions.py +496 -0
  53. python_intan-0.3.0/examples/finger_kinematics/8_render_prediction_video.py +461 -0
  54. python_intan-0.3.0/examples/finger_kinematics/CALIBRATION.md +159 -0
  55. python_intan-0.3.0/examples/finger_kinematics/README.md +261 -0
  56. python_intan-0.3.0/examples/finger_kinematics/SYNCHRONIZATION.md +210 -0
  57. python_intan-0.3.0/examples/finger_kinematics/WORKFLOW.md +420 -0
  58. python_intan-0.3.0/examples/finger_kinematics/sync_test.json +9 -0
  59. python_intan-0.3.0/examples/gesture_classifier/.gesture_config.example +108 -0
  60. python_intan-0.3.0/examples/gesture_classifier/1_build_dataset.py +552 -0
  61. python_intan-0.3.0/examples/gesture_classifier/2_train_model.py +500 -0
  62. python_intan-0.3.0/examples/gesture_classifier/3_predict.py +380 -0
  63. python_intan-0.3.0/examples/gesture_classifier/README.md +314 -0
  64. python_intan-0.3.0/examples/intan_tcp/RHXReadWaveformData.py +223 -0
  65. python_intan-0.3.0/examples/intan_tcp/RHXRunAndStimulateDemo.py +102 -0
  66. python_intan-0.3.0/examples/intan_tcp/RHXSaveToDiskPythonDemo.py +101 -0
  67. python_intan-0.3.0/examples/interface/README.md +39 -0
  68. python_intan-0.3.0/examples/interface/pico/code.py +211 -0
  69. python_intan-0.3.0/examples/interface/pico_imu_client.py +241 -0
  70. python_intan-0.3.0/examples/interface/rhx_connect_to_device.py +111 -0
  71. python_intan-0.3.0/examples/interface/rhx_emg_and_imu.py +279 -0
  72. python_intan-0.3.0/examples/synchronization/README.md +51 -0
  73. python_intan-0.3.0/examples/synchronization/sync_emg_video_demo.py +138 -0
  74. {python_intan-0.0.3 → python_intan-0.3.0}/intan/__init__.py +20 -6
  75. python_intan-0.3.0/intan/_cli.py +21 -0
  76. python_intan-0.3.0/intan/_optional.py +17 -0
  77. python_intan-0.3.0/intan/_sample_clock.py +99 -0
  78. python_intan-0.3.0/intan/applications/__init__.py +22 -0
  79. python_intan-0.3.0/intan/applications/_emg_trial_selector.py +430 -0
  80. python_intan-0.3.0/intan/applications/_emg_viewer.py +2137 -0
  81. python_intan-0.3.0/intan/applications/_launcher.py +36 -0
  82. python_intan-0.3.0/intan/decomposition/__init__.py +12 -0
  83. python_intan-0.3.0/intan/decomposition/_cfica.py +183 -0
  84. python_intan-0.3.0/intan/decomposition/_pca.py +43 -0
  85. python_intan-0.3.0/intan/interface/__init__.py +24 -0
  86. python_intan-0.3.0/intan/interface/_device_utils.py +173 -0
  87. python_intan-0.3.0/intan/interface/_lsl_client.py +343 -0
  88. python_intan-0.3.0/intan/interface/_lsl_options.py +16 -0
  89. python_intan-0.3.0/intan/interface/_lsl_publisher.py +142 -0
  90. python_intan-0.3.0/intan/interface/_lsl_subscriber.py +408 -0
  91. python_intan-0.3.0/intan/interface/_messaging.py +81 -0
  92. python_intan-0.3.0/intan/interface/_pico.py +91 -0
  93. python_intan-0.3.0/intan/interface/_playback_options.py +29 -0
  94. python_intan-0.3.0/intan/interface/_rhx_config.py +333 -0
  95. python_intan-0.3.0/intan/interface/_rhx_device.py +584 -0
  96. python_intan-0.3.0/intan/io/__init__.py +154 -0
  97. python_intan-0.3.0/intan/io/_canonicalizer.py +82 -0
  98. python_intan-0.3.0/intan/io/_config_utils.py +281 -0
  99. python_intan-0.3.0/intan/io/_csv_utils.py +250 -0
  100. python_intan-0.3.0/intan/io/_dataset_utils.py +267 -0
  101. python_intan-0.3.0/intan/io/_digital_edges.py +96 -0
  102. python_intan-0.3.0/intan/io/_exceptions.py +66 -0
  103. python_intan-0.3.0/intan/io/_file_utils.py +660 -0
  104. python_intan-0.3.0/intan/io/_grid_utils.py +280 -0
  105. python_intan-0.3.0/intan/io/_io_optimized.py +310 -0
  106. python_intan-0.3.0/intan/io/_npz_utils.py +745 -0
  107. python_intan-0.3.0/intan/io/_rhd_block_parser.py +408 -0
  108. python_intan-0.3.0/intan/io/_rhd_channel_utils.py +111 -0
  109. python_intan-0.3.0/intan/io/_rhd_header_parsing.py +813 -0
  110. python_intan-0.3.0/intan/io/_rhd_loader.py +723 -0
  111. python_intan-0.3.0/intan/io/_utilities.py +996 -0
  112. python_intan-0.3.0/intan/ml/__init__.py +60 -0
  113. python_intan-0.3.0/intan/ml/_evaluation.py +305 -0
  114. python_intan-0.3.0/intan/ml/_ml_utilities.py +155 -0
  115. python_intan-0.3.0/intan/ml/_model_manager.py +547 -0
  116. python_intan-0.3.0/intan/ml/_models.py +143 -0
  117. python_intan-0.3.0/intan/ml/_prediction_modes.py +478 -0
  118. python_intan-0.3.0/intan/ml/_prediction_utils.py +199 -0
  119. python_intan-0.3.0/intan/plotting/__init__.py +30 -0
  120. python_intan-0.3.0/intan/plotting/_realtime_plotter.py +107 -0
  121. python_intan-0.3.0/intan/plotting/_stacked_plot.py +385 -0
  122. python_intan-0.3.0/intan/plotting/_waterfall.py +155 -0
  123. python_intan-0.3.0/intan/processing/__init__.py +52 -0
  124. python_intan-0.3.0/intan/processing/_channel_qc.py +253 -0
  125. python_intan-0.3.0/intan/processing/_data_processing.py +21 -0
  126. python_intan-0.3.0/intan/processing/_features.py +460 -0
  127. python_intan-0.3.0/intan/processing/_fill.py +311 -0
  128. python_intan-0.3.0/intan/processing/_filters.py +259 -0
  129. python_intan-0.3.0/intan/processing/_imu_features.py +195 -0
  130. python_intan-0.3.0/intan/processing/_metrics_utils.py +67 -0
  131. python_intan-0.3.0/intan/processing/_preprocessing.py +208 -0
  132. python_intan-0.3.0/intan/processing/_realtime_filter.py +298 -0
  133. python_intan-0.3.0/intan/processing/_sync.py +292 -0
  134. python_intan-0.3.0/intan/processing/_temporal_filters.py +289 -0
  135. python_intan-0.3.0/intan/processing/_transformations.py +168 -0
  136. python_intan-0.3.0/intan/samples/__init__.py +1 -0
  137. python_intan-0.3.0/intan/samples/_find_file.py +35 -0
  138. python_intan-0.3.0/intan/sync.py +37 -0
  139. python_intan-0.3.0/intan/ui/__init__.py +31 -0
  140. python_intan-0.3.0/intan/ui/_helpers.py +109 -0
  141. python_intan-0.3.0/pyproject.toml +92 -0
  142. python_intan-0.3.0/python_intan.egg-info/PKG-INFO +304 -0
  143. python_intan-0.3.0/python_intan.egg-info/SOURCES.txt +154 -0
  144. python_intan-0.3.0/python_intan.egg-info/entry_points.txt +3 -0
  145. python_intan-0.3.0/python_intan.egg-info/requires.txt +49 -0
  146. python_intan-0.3.0/tests/test_emg_viewer_loading.py +67 -0
  147. python_intan-0.3.0/tests/test_optional_dependencies.py +121 -0
  148. python_intan-0.3.0/tests/test_optional_ml_errors.py +42 -0
  149. python_intan-0.3.0/tests/test_release_readiness.py +90 -0
  150. python_intan-0.3.0/tests/test_rhd_short_reads.py +51 -0
  151. python_intan-0.3.0/tests/test_sync.py +207 -0
  152. python_intan-0.0.3/PKG-INFO +0 -439
  153. python_intan-0.0.3/README.md +0 -409
  154. python_intan-0.0.3/pyproject.toml +0 -45
  155. python_intan-0.0.3/python_intan.egg-info/PKG-INFO +0 -439
  156. python_intan-0.0.3/python_intan.egg-info/SOURCES.txt +0 -13
  157. python_intan-0.0.3/python_intan.egg-info/requires.txt +0 -18
  158. python_intan-0.0.3/tests/test_denoise.py +0 -124
  159. python_intan-0.0.3/tests/test_pc_server.py +0 -40
  160. {python_intan-0.0.3 → python_intan-0.3.0}/LICENSE +0 -0
  161. {python_intan-0.0.3/tests → python_intan-0.3.0/examples/3D_printed_arm_control/pico_tests}/test_pico_server.py +0 -0
  162. {python_intan-0.0.3 → python_intan-0.3.0}/python_intan.egg-info/dependency_links.txt +0 -0
  163. {python_intan-0.0.3 → python_intan-0.3.0}/python_intan.egg-info/top_level.txt +0 -0
  164. {python_intan-0.0.3 → python_intan-0.3.0}/setup.cfg +0 -0
@@ -0,0 +1,369 @@
1
+ # Changelog
2
+
3
+ All notable changes to the python-intan package will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [0.3.0] - 2026-11-24
11
+
12
+ ### Changed
13
+ - Keep pandas, Matplotlib, and scikit-learn out of the base install. Use the new
14
+ `data`, `plot`, or `analysis` extras; `gui`, `ml`, and `docs` include the
15
+ analysis dependencies they need.
16
+ - Load table, plotting, and PCA dependencies on demand, with installation
17
+ guidance when an optional feature is requested.
18
+ - Keep documentation sources and media in the repository rather than source
19
+ distributions. Local documentation builds require a repository checkout.
20
+
21
+ ### Fixed
22
+ - Account for counter gaps when anchoring the first RHX batch to the LSL clock.
23
+ - Reduce allocations in amplifier scaling and digital-edge detection while
24
+ preserving sample values and transition behavior.
25
+
26
+ ## [0.2.3] - 2026-08-14
27
+
28
+ ### Fixed
29
+ - Match the README logo presentation used by python-open-ephys by removing the forced display width.
30
+
31
+ ## [0.2.2] - 2026-08-14
32
+
33
+ ### Fixed
34
+ - Use an absolute public URL for the README logo so it renders on GitHub, TestPyPI, and PyPI.
35
+
36
+ ## [0.2.1] - 2026-08-14
37
+
38
+ ### Added
39
+ - Console entry points for the EMG viewer and trial selector.
40
+ - Release-readiness regression tests and explicit test/build dependency group.
41
+ - Complete package metadata, classifiers, project URLs, and source manifest.
42
+
43
+ ### Changed
44
+ - Split PyTorch, GUI, and video stacks into optional dependency groups.
45
+ - Standardized supported model training and inference on PyTorch; removed the legacy TensorFlow/Keras viewer path.
46
+ - Removed the cosmetic splash screen and its Pillow dependency.
47
+ - Reworked the README and maintained documentation around demonstrable workflows.
48
+ - Updated examples to run from the repository root and provide reliable `--help` output.
49
+ - Reduced wheel and source-archive size by removing unused and duplicated image assets.
50
+
51
+ ### Fixed
52
+ - Repaired three syntax-broken examples and an unresolved merge marker.
53
+ - Restored lazy top-level subpackage access and optional plotting imports.
54
+ - Removed private-drive defaults, stale script references, and a cross-project package dependency.
55
+ - Corrected the gesture pipeline GUI's maintained script paths and command arguments.
56
+
57
+ ---
58
+
59
+ ## [0.1.0] - 2025-12-11
60
+
61
+ ### Added
62
+ - **Configuration System**: New `intan.io._config_utils` module with GUI/terminal prompts
63
+ - `load_simple_config()`, `save_simple_config()` for key=value config files
64
+ - `prompt_directory()`, `prompt_file()`, `prompt_text()` with fallback to terminal
65
+ - `get_or_prompt_value()` for CLI/config/prompt priority handling
66
+ - **Dataset Building**: New `intan.io._dataset_utils` module for ML workflows
67
+ - `select_channels()` with channel mapping support
68
+ - `process_recording()` for complete EMG→features→labels pipeline
69
+ - `save_dataset()` with comprehensive metadata
70
+ - **HD-EMG Grid Support**: New `intan.io._grid_utils` module
71
+ - `infer_grid_dimensions()` from channel names
72
+ - `apply_grid_permutation()` for spatial transforms (rotation, flip, transpose)
73
+ - `parse_orientation_from_filename()` for auto-detection
74
+ - `remap_grid_channels()` for orientation correction
75
+ - **Device Channel Management**: New `intan.interface._device_utils` module
76
+ - `normalize_channel_names()` for 0-based→1-based conversion
77
+ - `parse_channel_spec()` for port-indexed dictionaries
78
+ - `enable_channels_by_name()` for canonical naming
79
+ - `build_active_channel_order()` for stream alignment
80
+ - **IMU Features**: New `intan.processing._imu_features` module
81
+ - `aggregate_imu_features()` for multi-modal EMG+IMU datasets
82
+ - `append_imu_features()` with zscore/robust normalization
83
+ - Support for 'mean' and 'rich' (5-stat) feature modes
84
+ - **Prediction Pipelines**: New `intan.ml._prediction_modes` module
85
+ - `predict_file()` for offline RHD file prediction
86
+ - `predict_batch()` for multi-file aggregated metrics
87
+ - `predict_from_device()` for fixed-duration recording
88
+ - `predict_realtime_stream()` for continuous streaming
89
+ - **Prediction Utilities**: New `intan.ml._prediction_utils` module
90
+ - `extract_features_from_emg()` with training-locked parameters
91
+ - `compute_window_starts()` for event alignment
92
+ - `predict_with_model()` with dimension validation
93
+ - `predict_rhd_file()` for complete pipeline
94
+ - **Synchronization**: New `intan.processing._sync` module
95
+ - `compute_landmark_movement_signal()` from MediaPipe hand tracking
96
+ - `compute_emg_envelope_signal()` for alignment
97
+ - `find_sync_offset()` via cross-correlation
98
+ - `load_sync_offset()`, `save_sync_offset()` for persistence
99
+ - **Temporal Filters**: New `intan.processing._temporal_filters` module
100
+ - `moving_average()`, `lowpass_filter()`, `savitzky_golay()`
101
+ - `gaussian_smooth()`, `exponential_smooth()`, `adaptive_smooth()`
102
+ - `smooth_predictions()` unified interface
103
+
104
+ - **Examples**: Finger Kinematics Pipeline Documentation
105
+ - `CALIBRATION.md` - EMG normalization guide (session-to-session variability)
106
+ - `SYNCHRONIZATION.md` - EMG-video alignment (cross-correlation based)
107
+ - `WORKFLOW.md` - Complete 8-step pipeline reference
108
+ - `README.md` - Streamlined quick start (reduced from 511→262 lines)
109
+
110
+ - **Examples**: Gesture Classifier Enhancements
111
+ - `.gesture_config.example` - Shared config template for all scripts
112
+ - `1_build_dataset.py` - Unified builder (RHD/NPZ/CSV, single/multi-file, 29+ params)
113
+ - `3_predict.py` - Unified prediction CLI with 4 modes (file/batch/record/stream)
114
+ - Interactive prompts with directory/file pickers
115
+ - Poly5 file format support
116
+
117
+ - **Examples**: Interface Documentation
118
+ - `examples/interface/README.md` - Hardware integration overview
119
+ - LSL streaming examples
120
+ - Raspberry Pi Pico firmware references
121
+
122
+ ### Changed
123
+ - **Dataset Building**: Enhanced `1_build_dataset.py` with:
124
+ - Smart event file discovery (checks `events/` subdirectory)
125
+ - Visual separation of data (blue) and event (yellow) files in GUI
126
+ - Improved error reporting for missing event files
127
+ - Support for poly5 format alongside rhd/npz/csv
128
+ - Channel mapping and orientation remapping
129
+ - Multi-modal EMG+IMU features
130
+
131
+ - **Prediction**: Unified CLI in `3_predict.py`:
132
+ - Single entry point for all prediction modes
133
+ - Config file support (`.gesture_config`)
134
+ - Interactive prompts when arguments missing
135
+ - Shared parameter locking with training metadata
136
+
137
+ - **Documentation**: Finger kinematics workflow
138
+ - Removed 6 redundant files (REFACTORING.md, QUICK_REFERENCE.md, demo scripts)
139
+ - Consolidated step-by-step details into WORKFLOW.md
140
+ - Added synchronization as critical first step (prevents 9s misalignment)
141
+
142
+ ### Fixed
143
+ - **Event File Discovery**: Multi-file dataset building now correctly finds event files
144
+ - Strips timestamps before matching (e.g., `file_251110_125854.rhd` → `file.event`)
145
+ - Searches multiple patterns (`*_events.txt`, `*_event.txt`, `*.events`)
146
+ - Prioritizes `events/` subdirectory structure
147
+
148
+ - **GUI**: Dataset builder file discovery improvements
149
+ - Separate panels for data files (blue) vs event files (yellow)
150
+ - Smart directory search (raw/ for data, events/ for labels)
151
+ - Color-coded status (red=0 found, blue/brown=found)
152
+
153
+ - **Documentation**: Example organization
154
+ - Removed test files and demos from finger_kinematics
155
+ - Streamlined READMEs for clarity
156
+ - Fixed hardcoded paths in gesture_pipeline_profile.json
157
+
158
+ ### Removed
159
+ - Redundant documentation files from `examples/finger_kinematics/`:
160
+ - `REFACTORING.md`, `REFACTORING_SUMMARY.md`, `QUICK_REFERENCE.md`
161
+ - `demo_video_overlay.py`, `test_predict.py`
162
+ - `finger_angle_display_demo.png`
163
+
164
+ ## [0.0.3] - 2025-01-26
165
+
166
+ ### Added
167
+ - **Documentation**: Comprehensive examples documentation covering 8 major categories
168
+ - File loading and data access (`loading_data.rst`)
169
+ - Gesture classification pipeline (`gesture_classification.rst`)
170
+ - Lab Streaming Layer integration (`lsl_streaming.rst`)
171
+ - GUI applications guide (`gui_applications.rst`)
172
+ - Hardware control and integration (`hardware_control.rst`)
173
+ - **Documentation**: Expanded FAQ with 50+ questions across 11 categories
174
+ - **Documentation**: Created CONTRIBUTING.md with detailed contribution guidelines
175
+ - **Documentation**: Created CHANGELOG.md for version tracking
176
+ - **Examples**: Added CSV file loading support (`load_csv_demo.py`)
177
+ - **Examples**: LSL RMS bar plot visualization (`lsl_rms_barplot.py`)
178
+ - **Examples**: Cross-orientation gesture analysis script (`plot_cross_orientation.py`)
179
+ - **Examples**: Alternative model training pipeline (`2b_train_model.py`)
180
+ - **Processing**: Channel quality control utilities (`_channel_qc.py`)
181
+ - **IO**: CSV file utilities for loading preprocessed data (`_csv_utils.py`)
182
+
183
+ ### Changed
184
+ - **Documentation**: Reorganized examples with categorized sections (Data Handling, Visualization, ML, Hardware)
185
+ - **Documentation**: Updated README with comprehensive feature list, use cases, and quick start examples
186
+ - **Documentation**: Improved API documentation structure with proper module organization
187
+ - **Module**: Renamed `intan.rhx_interface` → `intan.interface` for consistency
188
+ - **Examples**: Updated all import statements to use correct module names
189
+ - **Examples**: Fixed `config_options.set_channel()` → `device.enable_wide_channel()`
190
+ - **Version**: Updated version citations from 0.1.0 → 0.0.3 in README and CITATION.cff
191
+
192
+ ### Fixed
193
+ - **Documentation**: Corrected autodoc module references in API docs
194
+ - Fixed `intan.applications` submodule references
195
+ - Fixed `intan.io` submodule names (added `_rhd_` prefix)
196
+ - Fixed `intan.plotting` submodule references
197
+ - **Documentation**: Fixed code block syntax errors in `realtime_predict.rst`
198
+ - **Documentation**: Removed missing image references and replaced with documentation links
199
+ - **Build**: Removed incorrect dynamic version reference in `pyproject.toml`
200
+
201
+ ### Documentation
202
+ - 4 new comprehensive example guides (60+ pages)
203
+ - 50+ FAQ entries with code examples
204
+ - Updated all cross-references to match new documentation structure
205
+ - Added table of contents to major documentation pages
206
+ - Improved code examples with proper error handling
207
+
208
+ ---
209
+
210
+ ## [0.0.2] - 2024-12-15
211
+
212
+ ### Added
213
+ - **Lab Streaming Layer (LSL)**: Full integration support
214
+ - LSL publisher for EMG data streams
215
+ - LSL subscriber for marker streams
216
+ - Synchronized recording capabilities
217
+ - Real-time visualization from LSL streams
218
+ - **GUI Applications**: PyQt5-based applications
219
+ - EMG Viewer with multiple display modes (waterfall, stacked, heatmap, RMS)
220
+ - Trial Selector for data annotation and segmentation
221
+ - Gesture Pipeline GUI for real-time gesture control
222
+ - Application launcher for unified access
223
+ - **Machine Learning**: Real-time prediction
224
+ - `EMGRealTimePredictor` class for online gesture recognition
225
+ - Prediction confidence thresholds
226
+ - Background prediction loops
227
+ - Performance metrics (latency, accuracy)
228
+ - **Processing**: Additional signal processing functions
229
+ - Channel quality assessment
230
+ - Artifact detection
231
+ - Advanced normalization methods
232
+ - **Interface**: Raspberry Pi Pico integration
233
+ - Serial communication utilities
234
+ - IMU data synchronization
235
+ - Servo control for robotic applications
236
+
237
+ ### Changed
238
+ - **Machine Learning**: Improved model training pipeline
239
+ - Better PCA integration
240
+ - Normalization parameter saving
241
+ - Cross-validation support
242
+ - **Streaming**: Enhanced RHX device interface
243
+ - Configurable buffer sizes
244
+ - Improved error handling
245
+ - Better connection diagnostics
246
+ - **Documentation**: Added real-time streaming guides
247
+ - **Examples**: Added 20+ new example scripts
248
+
249
+ ### Fixed
250
+ - **Streaming**: Fixed buffer overflow in long-duration streaming
251
+ - **ML**: Corrected feature extraction for real-time windows
252
+ - **IO**: Improved .dat file parsing for edge cases
253
+
254
+ ---
255
+
256
+ ## [0.0.1] - 2024-05-02
257
+
258
+ ### Added
259
+ - **Initial Release**: Core functionality for Intan data handling
260
+ - **File I/O**:
261
+ - `.rhd` file loading and parsing
262
+ - `.dat` file support
263
+ - Header and metadata extraction
264
+ - Channel information utilities
265
+ - **RHX Device Interface**:
266
+ - TCP/IP streaming from RHX software
267
+ - Command and data port communication
268
+ - Channel configuration
269
+ - Real-time data acquisition
270
+ - **Signal Processing**:
271
+ - Bandpass, highpass, lowpass filtering
272
+ - Notch filter (50/60 Hz powerline noise)
273
+ - Rectification
274
+ - RMS calculation
275
+ - Downsampling
276
+ - Normalization (z-score, min-max)
277
+ - **Machine Learning**:
278
+ - PCA-based feature extraction
279
+ - CNN model architecture for gesture classification
280
+ - Training dataset builder from .rhd files
281
+ - Model saving and loading utilities
282
+ - **Visualization**:
283
+ - Waterfall plots for multi-channel EMG
284
+ - Single-channel plotting
285
+ - Real-time plotting utilities
286
+ - Channel-by-name and channel-by-index plotting
287
+ - **Examples**:
288
+ - File loading demos
289
+ - RHX device streaming examples
290
+ - Gesture classifier training pipeline
291
+ - 3D-printed arm control integration
292
+ - **Documentation**:
293
+ - Sphinx documentation setup
294
+ - API reference
295
+ - Basic installation guide
296
+ - Getting started examples
297
+
298
+ ### Dependencies
299
+ - `numpy>=1.26.0`
300
+ - `scipy==1.14.1`
301
+ - `matplotlib`
302
+ - `pandas`
303
+ - `PySerial`
304
+ - `scikit-learn`
305
+ - legacy neural-network runtime (removed from the supported stack in 0.2.1)
306
+ - `seaborn`
307
+ - `pyyaml`
308
+ - `PyQt5`
309
+ - `pyqtgraph`
310
+ - `pylsl`
311
+
312
+ ---
313
+
314
+ ## Version Numbering
315
+
316
+ This project follows [Semantic Versioning](https://semver.org/):
317
+
318
+ - **MAJOR version** (X.0.0): Incompatible API changes
319
+ - **MINOR version** (0.X.0): New features, backward compatible
320
+ - **PATCH version** (0.0.X): Bug fixes, backward compatible
321
+
322
+ **Current Status**: Pre-1.0 development phase
323
+ - API may change between minor versions
324
+ - Aiming for 1.0.0 release with stable API in 2025
325
+
326
+ ---
327
+
328
+ ## Release Process
329
+
330
+ 1. Update CHANGELOG.md with new version and changes
331
+ 2. Update version in:
332
+ - `intan/__init__.py`
333
+ - `pyproject.toml`
334
+ - `CITATION.cff`
335
+ - `README.md`
336
+ 3. Build documentation: `cd docs && make html`
337
+ 4. Run tests (if available): `pytest`
338
+ 5. Build package: `python -m build`
339
+ 6. Test on TestPyPI: `twine upload --repository testpypi dist/*`
340
+ 7. Publish to PyPI: `twine upload dist/*`
341
+ 8. Create GitHub release with tag `vX.Y.Z`
342
+ 9. Update documentation website
343
+
344
+ ---
345
+
346
+ ## Links
347
+
348
+ - **Homepage**: https://github.com/Neuro-Mechatronics-Interfaces/python-intan
349
+ - **Documentation**: https://neuro-mechatronics-interfaces.github.io/python-intan/
350
+ - **PyPI**: https://pypi.org/project/python-intan/
351
+ - **Issues**: https://github.com/Neuro-Mechatronics-Interfaces/python-intan/issues
352
+
353
+ ---
354
+
355
+ ## Contributors
356
+
357
+ Thank you to all contributors who have helped improve python-intan!
358
+
359
+ **Core Team:**
360
+ - Jonathan Shulgach (@jshulgach)
361
+ - Max Murphy
362
+ - Adrian Foy
363
+
364
+ **Community Contributors:**
365
+ - [Your name here!](CONTRIBUTING.md)
366
+
367
+ ---
368
+
369
+ *For older versions or detailed commit history, see [GitHub Releases](https://github.com/Neuro-Mechatronics-Interfaces/python-intan/releases).*
@@ -0,0 +1,14 @@
1
+ cff-version: 1.2.0
2
+ message: "If you use this software, please cite it using the following metadata."
3
+ title: "Python Intan Package"
4
+ authors:
5
+ - family-names: Shulgach
6
+ given-names: Jonathan
7
+ affiliation: Carnegie Mellon University
8
+ orcid: https://orcid.org/0009-0004-0449-9918
9
+ - family-names: Foy
10
+ given-names: Adrian
11
+ affiliation: Intan Technologies
12
+ version: 0.3.0
13
+ license: MIT
14
+ repository-code: https://github.com/Neuro-Mechatronics-Interfaces/python-intan