python-intan 0.0.3__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.
- python_intan-0.2.3/CHANGELOG.md +353 -0
- python_intan-0.2.3/CITATION.cff +14 -0
- python_intan-0.2.3/CONTRIBUTING.md +441 -0
- python_intan-0.2.3/MANIFEST.in +19 -0
- python_intan-0.2.3/PKG-INFO +230 -0
- python_intan-0.2.3/README.md +179 -0
- python_intan-0.2.3/docs/Makefile +20 -0
- python_intan-0.2.3/docs/figs/logo.png +0 -0
- python_intan-0.2.3/docs/make.bat +35 -0
- python_intan-0.2.3/docs/source/conf.py +50 -0
- python_intan-0.2.3/docs/source/examples/file_loading.rst +66 -0
- python_intan-0.2.3/docs/source/examples/gesture_classification.rst +53 -0
- python_intan-0.2.3/docs/source/examples/gui_applications.rst +38 -0
- python_intan-0.2.3/docs/source/examples/hardware_control.rst +56 -0
- python_intan-0.2.3/docs/source/examples/introduction.rst +101 -0
- python_intan-0.2.3/docs/source/examples/live_plotting.rst +145 -0
- python_intan-0.2.3/docs/source/examples/live_plotting_demo.gif +0 -0
- python_intan-0.2.3/docs/source/examples/loading_data.rst +292 -0
- python_intan-0.2.3/docs/source/examples/lsl_streaming.rst +420 -0
- python_intan-0.2.3/docs/source/examples/realtime_predict.rst +21 -0
- python_intan-0.2.3/docs/source/examples/stream_vs_file.rst +84 -0
- python_intan-0.2.3/docs/source/index.rst +27 -0
- python_intan-0.2.3/docs/source/info/advanced.rst +5 -0
- python_intan-0.2.3/docs/source/info/applications.rst +80 -0
- python_intan-0.2.3/docs/source/info/faqs.rst +42 -0
- python_intan-0.2.3/docs/source/info/index.rst +16 -0
- python_intan-0.2.3/docs/source/info/installation.rst +34 -0
- python_intan-0.2.3/docs/source/info/load_files.rst +44 -0
- python_intan-0.2.3/docs/source/info/plotting.rst +93 -0
- python_intan-0.2.3/docs/source/info/rhx_device.rst +153 -0
- python_intan-0.2.3/docs/source/info/signal_processing.rst +221 -0
- python_intan-0.2.3/docs/source/intan_api/intan.applications.rst +27 -0
- python_intan-0.2.3/docs/source/intan_api/intan.decomposition.rst +19 -0
- python_intan-0.2.3/docs/source/intan_api/intan.interface.rst +12 -0
- python_intan-0.2.3/docs/source/intan_api/intan.io.rst +62 -0
- python_intan-0.2.3/docs/source/intan_api/intan.ml.rst +15 -0
- python_intan-0.2.3/docs/source/intan_api/intan.plotting.rst +22 -0
- python_intan-0.2.3/docs/source/intan_api/intan.processing.rst +24 -0
- python_intan-0.2.3/docs/source/intan_api/intan.rst +25 -0
- python_intan-0.2.3/docs/source/intan_api/intan.samples.rst +14 -0
- python_intan-0.2.3/docs/source/intan_api/modules.rst +7 -0
- python_intan-0.2.3/examples/3D_printed_arm_control/README.md +16 -0
- python_intan-0.2.3/examples/3D_printed_arm_control/code.py +248 -0
- python_intan-0.2.3/examples/3D_printed_arm_control/pico_tests/pico_servo_sweep.py +38 -0
- {python_intan-0.0.3/tests → python_intan-0.2.3/examples/3D_printed_arm_control/pico_tests}/test_RHD2164_SPI.py +12 -12
- python_intan-0.2.3/examples/LSL/README.md +177 -0
- python_intan-0.2.3/examples/LSL/lsl_marker_sub.py +31 -0
- python_intan-0.2.3/examples/LSL/lsl_rms_barplot.py +237 -0
- python_intan-0.2.3/examples/LSL/lsl_stacked_plot.py +51 -0
- python_intan-0.2.3/examples/LSL/lsl_waveform_viewer.py +141 -0
- python_intan-0.2.3/examples/RHD2164_wireless/code.py +361 -0
- python_intan-0.2.3/examples/RHXDevice/README.md +215 -0
- python_intan-0.2.3/examples/RHXDevice/compare_rhd_vs_stream.py +116 -0
- python_intan-0.2.3/examples/RHXDevice/multichannel_stream_plot.py +117 -0
- python_intan-0.2.3/examples/RHXDevice/record_demo.py +76 -0
- python_intan-0.2.3/examples/RHXDevice/scrolling_live.py +128 -0
- python_intan-0.2.3/examples/RHXDevice/tcp_benchmark.py +163 -0
- python_intan-0.2.3/examples/Read_Files/README.md +38 -0
- python_intan-0.2.3/examples/Read_Files/load_csv_demo.py +38 -0
- python_intan-0.2.3/examples/Read_Files/load_dat_demo.py +46 -0
- python_intan-0.2.3/examples/Read_Files/load_rhd_demo.py +36 -0
- python_intan-0.2.3/examples/Read_Files/parse_dat_data.py +117 -0
- python_intan-0.2.3/examples/Read_Files/parse_rhd_data.py +106 -0
- python_intan-0.2.3/examples/Read_Files/segment_emg_from_events.py +263 -0
- python_intan-0.2.3/examples/applications/README.md +47 -0
- python_intan-0.2.3/examples/applications/dataset_builder_gui.py +997 -0
- python_intan-0.2.3/examples/applications/emg_file_viewer.py +1176 -0
- python_intan-0.2.3/examples/applications/emg_file_viewer_clean.py +15 -0
- python_intan-0.2.3/examples/applications/emg_file_viewer_popup.py +685 -0
- python_intan-0.2.3/examples/applications/gesture_pipeline_gui.py +1621 -0
- python_intan-0.2.3/examples/applications/gesture_pipeline_profile.json +39 -0
- python_intan-0.2.3/examples/applications/run_emg_viewer.py +23 -0
- python_intan-0.2.3/examples/applications/run_trial_selector.py +23 -0
- python_intan-0.2.3/examples/exo_classifier/1_build_training_dataset.py +689 -0
- python_intan-0.2.3/examples/exo_classifier/2_train_model.py +540 -0
- python_intan-0.2.3/examples/exo_classifier/3_predict_realtime.py +729 -0
- python_intan-0.2.3/examples/exo_classifier/README_PAPER_REPLICATION.md +340 -0
- python_intan-0.2.3/examples/exo_classifier/channel_quality_helpers.py +203 -0
- python_intan-0.2.3/examples/exo_classifier/test_emg_strips.py +510 -0
- python_intan-0.2.3/examples/finger_kinematics/.kinematics_config.example +12 -0
- python_intan-0.2.3/examples/finger_kinematics/1_synchronize_emg_video.py +423 -0
- python_intan-0.2.3/examples/finger_kinematics/2_extract_joint_angles.py +340 -0
- python_intan-0.2.3/examples/finger_kinematics/3_calibrate_and_normalize.py +378 -0
- python_intan-0.2.3/examples/finger_kinematics/4_build_dataset.py +842 -0
- python_intan-0.2.3/examples/finger_kinematics/5_train_model.py +341 -0
- python_intan-0.2.3/examples/finger_kinematics/6_predict.py +601 -0
- python_intan-0.2.3/examples/finger_kinematics/7_analyze_predictions.py +496 -0
- python_intan-0.2.3/examples/finger_kinematics/8_render_prediction_video.py +461 -0
- python_intan-0.2.3/examples/finger_kinematics/CALIBRATION.md +159 -0
- python_intan-0.2.3/examples/finger_kinematics/README.md +261 -0
- python_intan-0.2.3/examples/finger_kinematics/SYNCHRONIZATION.md +210 -0
- python_intan-0.2.3/examples/finger_kinematics/WORKFLOW.md +420 -0
- python_intan-0.2.3/examples/finger_kinematics/sync_test.json +9 -0
- python_intan-0.2.3/examples/gesture_classifier/.gesture_config.example +108 -0
- python_intan-0.2.3/examples/gesture_classifier/1_build_dataset.py +552 -0
- python_intan-0.2.3/examples/gesture_classifier/2_train_model.py +500 -0
- python_intan-0.2.3/examples/gesture_classifier/3_predict.py +380 -0
- python_intan-0.2.3/examples/gesture_classifier/README.md +314 -0
- python_intan-0.2.3/examples/intan_tcp/RHXReadWaveformData.py +223 -0
- python_intan-0.2.3/examples/intan_tcp/RHXRunAndStimulateDemo.py +102 -0
- python_intan-0.2.3/examples/intan_tcp/RHXSaveToDiskPythonDemo.py +101 -0
- python_intan-0.2.3/examples/interface/README.md +39 -0
- python_intan-0.2.3/examples/interface/pico/code.py +211 -0
- python_intan-0.2.3/examples/interface/pico_imu_client.py +241 -0
- python_intan-0.2.3/examples/interface/rhx_connect_to_device.py +111 -0
- python_intan-0.2.3/examples/interface/rhx_emg_and_imu.py +279 -0
- python_intan-0.2.3/examples/synchronization/README.md +51 -0
- python_intan-0.2.3/examples/synchronization/sync_emg_video_demo.py +138 -0
- {python_intan-0.0.3 → python_intan-0.2.3}/intan/__init__.py +29 -16
- python_intan-0.2.3/intan/_cli.py +21 -0
- python_intan-0.2.3/intan/applications/__init__.py +22 -0
- python_intan-0.2.3/intan/applications/_emg_trial_selector.py +430 -0
- python_intan-0.2.3/intan/applications/_emg_viewer.py +2052 -0
- python_intan-0.2.3/intan/applications/_launcher.py +36 -0
- python_intan-0.2.3/intan/decomposition/__init__.py +12 -0
- python_intan-0.2.3/intan/decomposition/_cfica.py +183 -0
- python_intan-0.2.3/intan/decomposition/_pca.py +42 -0
- python_intan-0.2.3/intan/interface/__init__.py +24 -0
- python_intan-0.2.3/intan/interface/_device_utils.py +173 -0
- python_intan-0.2.3/intan/interface/_lsl_client.py +343 -0
- python_intan-0.2.3/intan/interface/_lsl_options.py +15 -0
- python_intan-0.2.3/intan/interface/_lsl_publisher.py +139 -0
- python_intan-0.2.3/intan/interface/_lsl_subscriber.py +408 -0
- python_intan-0.2.3/intan/interface/_messaging.py +81 -0
- python_intan-0.2.3/intan/interface/_pico.py +91 -0
- python_intan-0.2.3/intan/interface/_playback_options.py +29 -0
- python_intan-0.2.3/intan/interface/_rhx_config.py +333 -0
- python_intan-0.2.3/intan/interface/_rhx_device.py +498 -0
- python_intan-0.2.3/intan/io/__init__.py +153 -0
- python_intan-0.2.3/intan/io/_canonicalizer.py +82 -0
- python_intan-0.2.3/intan/io/_config_utils.py +281 -0
- python_intan-0.2.3/intan/io/_csv_utils.py +247 -0
- python_intan-0.2.3/intan/io/_dataset_utils.py +267 -0
- python_intan-0.2.3/intan/io/_exceptions.py +66 -0
- python_intan-0.2.3/intan/io/_file_utils.py +661 -0
- python_intan-0.2.3/intan/io/_grid_utils.py +280 -0
- python_intan-0.2.3/intan/io/_io_optimized.py +310 -0
- python_intan-0.2.3/intan/io/_npz_utils.py +745 -0
- python_intan-0.2.3/intan/io/_rhd_block_parser.py +376 -0
- python_intan-0.2.3/intan/io/_rhd_channel_utils.py +111 -0
- python_intan-0.2.3/intan/io/_rhd_header_parsing.py +791 -0
- python_intan-0.2.3/intan/io/_rhd_loader.py +723 -0
- python_intan-0.2.3/intan/io/_utilities.py +995 -0
- python_intan-0.2.3/intan/ml/__init__.py +47 -0
- python_intan-0.2.3/intan/ml/_evaluation.py +305 -0
- python_intan-0.2.3/intan/ml/_ml_utilities.py +155 -0
- python_intan-0.2.3/intan/ml/_model_manager.py +547 -0
- python_intan-0.2.3/intan/ml/_models.py +143 -0
- python_intan-0.2.3/intan/ml/_prediction_modes.py +478 -0
- python_intan-0.2.3/intan/ml/_prediction_utils.py +199 -0
- python_intan-0.2.3/intan/plotting/__init__.py +30 -0
- python_intan-0.2.3/intan/plotting/_realtime_plotter.py +105 -0
- python_intan-0.2.3/intan/plotting/_stacked_plot.py +385 -0
- python_intan-0.2.3/intan/plotting/_waterfall.py +153 -0
- python_intan-0.2.3/intan/processing/__init__.py +52 -0
- python_intan-0.2.3/intan/processing/_channel_qc.py +253 -0
- python_intan-0.2.3/intan/processing/_data_processing.py +21 -0
- python_intan-0.2.3/intan/processing/_features.py +460 -0
- python_intan-0.2.3/intan/processing/_fill.py +309 -0
- python_intan-0.2.3/intan/processing/_filters.py +259 -0
- python_intan-0.2.3/intan/processing/_imu_features.py +195 -0
- python_intan-0.2.3/intan/processing/_metrics_utils.py +72 -0
- python_intan-0.2.3/intan/processing/_preprocessing.py +208 -0
- python_intan-0.2.3/intan/processing/_realtime_filter.py +298 -0
- python_intan-0.2.3/intan/processing/_sync.py +292 -0
- python_intan-0.2.3/intan/processing/_temporal_filters.py +289 -0
- python_intan-0.2.3/intan/processing/_transformations.py +168 -0
- python_intan-0.2.3/intan/samples/__init__.py +1 -0
- python_intan-0.2.3/intan/samples/_find_file.py +35 -0
- python_intan-0.2.3/intan/ui/__init__.py +31 -0
- python_intan-0.2.3/intan/ui/_helpers.py +109 -0
- python_intan-0.2.3/pyproject.toml +79 -0
- python_intan-0.2.3/python_intan.egg-info/PKG-INFO +230 -0
- python_intan-0.2.3/python_intan.egg-info/SOURCES.txt +180 -0
- python_intan-0.2.3/python_intan.egg-info/entry_points.txt +3 -0
- python_intan-0.2.3/python_intan.egg-info/requires.txt +32 -0
- python_intan-0.2.3/tests/test_release_readiness.py +90 -0
- python_intan-0.0.3/PKG-INFO +0 -439
- python_intan-0.0.3/README.md +0 -409
- python_intan-0.0.3/pyproject.toml +0 -45
- python_intan-0.0.3/python_intan.egg-info/PKG-INFO +0 -439
- python_intan-0.0.3/python_intan.egg-info/SOURCES.txt +0 -13
- python_intan-0.0.3/python_intan.egg-info/requires.txt +0 -18
- python_intan-0.0.3/tests/test_denoise.py +0 -124
- python_intan-0.0.3/tests/test_pc_server.py +0 -40
- {python_intan-0.0.3 → python_intan-0.2.3}/LICENSE +0 -0
- {python_intan-0.0.3/tests → python_intan-0.2.3/examples/3D_printed_arm_control/pico_tests}/test_pico_server.py +0 -0
- {python_intan-0.0.3 → python_intan-0.2.3}/python_intan.egg-info/dependency_links.txt +0 -0
- {python_intan-0.0.3 → python_intan-0.2.3}/python_intan.egg-info/top_level.txt +0 -0
- {python_intan-0.0.3 → 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
|