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