python-intan 0.2.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.
- {python_intan-0.2.3 → python_intan-0.3.0}/CHANGELOG.md +49 -33
- {python_intan-0.2.3 → python_intan-0.3.0}/CITATION.cff +1 -1
- {python_intan-0.2.3 → python_intan-0.3.0}/MANIFEST.in +20 -19
- {python_intan-0.2.3/python_intan.egg-info → python_intan-0.3.0}/PKG-INFO +81 -7
- {python_intan-0.2.3 → python_intan-0.3.0}/README.md +239 -179
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/__init__.py +29 -28
- python_intan-0.3.0/intan/_optional.py +17 -0
- python_intan-0.3.0/intan/_sample_clock.py +99 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/applications/_emg_viewer.py +130 -45
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/decomposition/_pca.py +3 -2
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/interface/_lsl_options.py +1 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/interface/_lsl_publisher.py +4 -1
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/interface/_rhx_device.py +131 -45
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/io/__init__.py +2 -1
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/io/_csv_utils.py +7 -4
- python_intan-0.3.0/intan/io/_digital_edges.py +96 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/io/_file_utils.py +5 -6
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/io/_rhd_block_parser.py +37 -5
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/io/_rhd_header_parsing.py +25 -3
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/io/_utilities.py +17 -16
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/ml/__init__.py +16 -3
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/plotting/_realtime_plotter.py +3 -1
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/plotting/_waterfall.py +3 -1
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/processing/_fill.py +3 -1
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/processing/_metrics_utils.py +6 -11
- python_intan-0.3.0/intan/sync.py +37 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/pyproject.toml +92 -79
- {python_intan-0.2.3 → python_intan-0.3.0/python_intan.egg-info}/PKG-INFO +81 -7
- {python_intan-0.2.3 → python_intan-0.3.0}/python_intan.egg-info/SOURCES.txt +10 -36
- {python_intan-0.2.3 → python_intan-0.3.0}/python_intan.egg-info/requires.txt +20 -3
- python_intan-0.3.0/tests/test_emg_viewer_loading.py +67 -0
- python_intan-0.3.0/tests/test_optional_dependencies.py +121 -0
- python_intan-0.3.0/tests/test_optional_ml_errors.py +42 -0
- python_intan-0.3.0/tests/test_rhd_short_reads.py +51 -0
- python_intan-0.3.0/tests/test_sync.py +207 -0
- python_intan-0.2.3/docs/Makefile +0 -20
- python_intan-0.2.3/docs/figs/logo.png +0 -0
- python_intan-0.2.3/docs/make.bat +0 -35
- python_intan-0.2.3/docs/source/conf.py +0 -50
- python_intan-0.2.3/docs/source/examples/file_loading.rst +0 -66
- python_intan-0.2.3/docs/source/examples/gesture_classification.rst +0 -53
- python_intan-0.2.3/docs/source/examples/gui_applications.rst +0 -38
- python_intan-0.2.3/docs/source/examples/hardware_control.rst +0 -56
- python_intan-0.2.3/docs/source/examples/introduction.rst +0 -101
- python_intan-0.2.3/docs/source/examples/live_plotting.rst +0 -145
- 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 +0 -292
- python_intan-0.2.3/docs/source/examples/lsl_streaming.rst +0 -420
- python_intan-0.2.3/docs/source/examples/realtime_predict.rst +0 -21
- python_intan-0.2.3/docs/source/examples/stream_vs_file.rst +0 -84
- python_intan-0.2.3/docs/source/index.rst +0 -27
- python_intan-0.2.3/docs/source/info/advanced.rst +0 -5
- python_intan-0.2.3/docs/source/info/applications.rst +0 -80
- python_intan-0.2.3/docs/source/info/faqs.rst +0 -42
- python_intan-0.2.3/docs/source/info/index.rst +0 -16
- python_intan-0.2.3/docs/source/info/installation.rst +0 -34
- python_intan-0.2.3/docs/source/info/load_files.rst +0 -44
- python_intan-0.2.3/docs/source/info/plotting.rst +0 -93
- python_intan-0.2.3/docs/source/info/rhx_device.rst +0 -153
- python_intan-0.2.3/docs/source/info/signal_processing.rst +0 -221
- python_intan-0.2.3/docs/source/intan_api/intan.applications.rst +0 -27
- python_intan-0.2.3/docs/source/intan_api/intan.decomposition.rst +0 -19
- python_intan-0.2.3/docs/source/intan_api/intan.interface.rst +0 -12
- python_intan-0.2.3/docs/source/intan_api/intan.io.rst +0 -62
- python_intan-0.2.3/docs/source/intan_api/intan.ml.rst +0 -15
- python_intan-0.2.3/docs/source/intan_api/intan.plotting.rst +0 -22
- python_intan-0.2.3/docs/source/intan_api/intan.processing.rst +0 -24
- python_intan-0.2.3/docs/source/intan_api/intan.rst +0 -25
- python_intan-0.2.3/docs/source/intan_api/intan.samples.rst +0 -14
- python_intan-0.2.3/docs/source/intan_api/modules.rst +0 -7
- {python_intan-0.2.3 → python_intan-0.3.0}/CONTRIBUTING.md +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/LICENSE +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/3D_printed_arm_control/README.md +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/3D_printed_arm_control/code.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/3D_printed_arm_control/pico_tests/pico_servo_sweep.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/3D_printed_arm_control/pico_tests/test_RHD2164_SPI.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/3D_printed_arm_control/pico_tests/test_pico_server.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/LSL/README.md +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/LSL/lsl_marker_sub.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/LSL/lsl_rms_barplot.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/LSL/lsl_stacked_plot.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/LSL/lsl_waveform_viewer.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/RHD2164_wireless/code.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/RHXDevice/README.md +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/RHXDevice/compare_rhd_vs_stream.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/RHXDevice/multichannel_stream_plot.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/RHXDevice/record_demo.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/RHXDevice/scrolling_live.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/RHXDevice/tcp_benchmark.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/Read_Files/README.md +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/Read_Files/load_csv_demo.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/Read_Files/load_dat_demo.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/Read_Files/load_rhd_demo.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/Read_Files/parse_dat_data.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/Read_Files/parse_rhd_data.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/Read_Files/segment_emg_from_events.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/applications/README.md +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/applications/dataset_builder_gui.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/applications/emg_file_viewer.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/applications/emg_file_viewer_clean.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/applications/emg_file_viewer_popup.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/applications/gesture_pipeline_gui.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/applications/gesture_pipeline_profile.json +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/applications/run_emg_viewer.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/applications/run_trial_selector.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/exo_classifier/1_build_training_dataset.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/exo_classifier/2_train_model.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/exo_classifier/3_predict_realtime.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/exo_classifier/README_PAPER_REPLICATION.md +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/exo_classifier/channel_quality_helpers.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/exo_classifier/test_emg_strips.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/finger_kinematics/.kinematics_config.example +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/finger_kinematics/1_synchronize_emg_video.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/finger_kinematics/2_extract_joint_angles.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/finger_kinematics/3_calibrate_and_normalize.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/finger_kinematics/4_build_dataset.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/finger_kinematics/5_train_model.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/finger_kinematics/6_predict.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/finger_kinematics/7_analyze_predictions.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/finger_kinematics/8_render_prediction_video.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/finger_kinematics/CALIBRATION.md +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/finger_kinematics/README.md +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/finger_kinematics/SYNCHRONIZATION.md +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/finger_kinematics/WORKFLOW.md +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/finger_kinematics/sync_test.json +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/gesture_classifier/.gesture_config.example +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/gesture_classifier/1_build_dataset.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/gesture_classifier/2_train_model.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/gesture_classifier/3_predict.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/gesture_classifier/README.md +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/intan_tcp/RHXReadWaveformData.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/intan_tcp/RHXRunAndStimulateDemo.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/intan_tcp/RHXSaveToDiskPythonDemo.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/interface/README.md +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/interface/pico/code.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/interface/pico_imu_client.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/interface/rhx_connect_to_device.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/interface/rhx_emg_and_imu.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/synchronization/README.md +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/examples/synchronization/sync_emg_video_demo.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/_cli.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/applications/__init__.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/applications/_emg_trial_selector.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/applications/_launcher.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/decomposition/__init__.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/decomposition/_cfica.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/interface/__init__.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/interface/_device_utils.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/interface/_lsl_client.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/interface/_lsl_subscriber.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/interface/_messaging.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/interface/_pico.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/interface/_playback_options.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/interface/_rhx_config.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/io/_canonicalizer.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/io/_config_utils.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/io/_dataset_utils.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/io/_exceptions.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/io/_grid_utils.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/io/_io_optimized.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/io/_npz_utils.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/io/_rhd_channel_utils.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/io/_rhd_loader.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/ml/_evaluation.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/ml/_ml_utilities.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/ml/_model_manager.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/ml/_models.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/ml/_prediction_modes.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/ml/_prediction_utils.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/plotting/__init__.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/plotting/_stacked_plot.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/processing/__init__.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/processing/_channel_qc.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/processing/_data_processing.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/processing/_features.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/processing/_filters.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/processing/_imu_features.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/processing/_preprocessing.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/processing/_realtime_filter.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/processing/_sync.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/processing/_temporal_filters.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/processing/_transformations.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/samples/__init__.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/samples/_find_file.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/ui/__init__.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/intan/ui/_helpers.py +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/python_intan.egg-info/dependency_links.txt +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/python_intan.egg-info/entry_points.txt +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/python_intan.egg-info/top_level.txt +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/setup.cfg +0 -0
- {python_intan-0.2.3 → python_intan-0.3.0}/tests/test_release_readiness.py +0 -0
|
@@ -5,38 +5,54 @@ All notable changes to the python-intan package will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
## [Unreleased]
|
|
9
|
-
|
|
10
|
-
## [0.
|
|
11
|
-
|
|
12
|
-
###
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
-
|
|
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.
|
|
40
56
|
|
|
41
57
|
---
|
|
42
58
|
|
|
@@ -286,7 +302,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
286
302
|
- `pandas`
|
|
287
303
|
- `PySerial`
|
|
288
304
|
- `scikit-learn`
|
|
289
|
-
- legacy neural-network runtime (removed from the supported stack in 0.2.1)
|
|
305
|
+
- legacy neural-network runtime (removed from the supported stack in 0.2.1)
|
|
290
306
|
- `seaborn`
|
|
291
307
|
- `pyyaml`
|
|
292
308
|
- `PyQt5`
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
include CHANGELOG.md
|
|
2
|
-
include CITATION.cff
|
|
3
|
-
include CONTRIBUTING.md
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
include examples
|
|
8
|
-
|
|
9
|
-
recursive-include examples/
|
|
10
|
-
recursive-include examples/
|
|
11
|
-
recursive-include examples/
|
|
12
|
-
recursive-include examples/
|
|
13
|
-
recursive-include examples/
|
|
14
|
-
recursive-include examples/
|
|
15
|
-
recursive-include examples/
|
|
16
|
-
recursive-include examples/
|
|
17
|
-
recursive-include examples/
|
|
18
|
-
recursive-include examples/
|
|
19
|
-
recursive-include examples/
|
|
1
|
+
include CHANGELOG.md
|
|
2
|
+
include CITATION.cff
|
|
3
|
+
include CONTRIBUTING.md
|
|
4
|
+
# Documentation and its media are available in the repository and online.
|
|
5
|
+
# Keep source distributions focused on installable code, examples and tests.
|
|
6
|
+
prune docs
|
|
7
|
+
recursive-include examples *.example *.json *.md
|
|
8
|
+
include examples/3D_printed_arm_control/code.py
|
|
9
|
+
recursive-include examples/3D_printed_arm_control/pico_tests *.py
|
|
10
|
+
recursive-include examples/LSL *.py
|
|
11
|
+
recursive-include examples/RHD2164_wireless *.py
|
|
12
|
+
recursive-include examples/RHXDevice *.py
|
|
13
|
+
recursive-include examples/Read_Files *.py
|
|
14
|
+
recursive-include examples/applications *.py
|
|
15
|
+
recursive-include examples/exo_classifier *.py
|
|
16
|
+
recursive-include examples/finger_kinematics *.py
|
|
17
|
+
recursive-include examples/gesture_classifier *.py
|
|
18
|
+
recursive-include examples/intan_tcp *.py
|
|
19
|
+
recursive-include examples/interface *.py
|
|
20
|
+
recursive-include examples/synchronization *.py
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-intan
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: Python interfaces and utilities for Intan RHX devices and electrophysiology data
|
|
5
5
|
Author-email: Jonathan Shulgach <jshulgac@andrew.cmu.edu>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -20,25 +20,39 @@ Classifier: Topic :: Scientific/Engineering
|
|
|
20
20
|
Requires-Python: >=3.10
|
|
21
21
|
Description-Content-Type: text/markdown
|
|
22
22
|
License-File: LICENSE
|
|
23
|
-
Requires-Dist: matplotlib>=3.7
|
|
24
23
|
Requires-Dist: numpy>=1.26
|
|
25
|
-
Requires-Dist: pandas>=2.0
|
|
26
24
|
Requires-Dist: pylsl>=1.16
|
|
27
25
|
Requires-Dist: PyYAML>=6.0
|
|
28
26
|
Requires-Dist: pyserial>=3.5
|
|
29
|
-
Requires-Dist: scikit-learn>=1.3
|
|
30
27
|
Requires-Dist: scipy>=1.11
|
|
31
28
|
Requires-Dist: tqdm>=4.65
|
|
29
|
+
Provides-Extra: data
|
|
30
|
+
Requires-Dist: pandas>=2.0; extra == "data"
|
|
31
|
+
Provides-Extra: plot
|
|
32
|
+
Requires-Dist: matplotlib>=3.7; extra == "plot"
|
|
33
|
+
Provides-Extra: analysis
|
|
34
|
+
Requires-Dist: pandas>=2.0; extra == "analysis"
|
|
35
|
+
Requires-Dist: matplotlib>=3.7; extra == "analysis"
|
|
36
|
+
Requires-Dist: scikit-learn>=1.3; extra == "analysis"
|
|
32
37
|
Provides-Extra: gui
|
|
38
|
+
Requires-Dist: pandas>=2.0; extra == "gui"
|
|
39
|
+
Requires-Dist: matplotlib>=3.7; extra == "gui"
|
|
40
|
+
Requires-Dist: scikit-learn>=1.3; extra == "gui"
|
|
33
41
|
Requires-Dist: PyQt5>=5.15; extra == "gui"
|
|
34
42
|
Requires-Dist: pyqtgraph>=0.13; extra == "gui"
|
|
35
43
|
Provides-Extra: ml
|
|
44
|
+
Requires-Dist: pandas>=2.0; extra == "ml"
|
|
45
|
+
Requires-Dist: matplotlib>=3.7; extra == "ml"
|
|
46
|
+
Requires-Dist: scikit-learn>=1.3; extra == "ml"
|
|
36
47
|
Requires-Dist: joblib>=1.3; extra == "ml"
|
|
37
48
|
Requires-Dist: torch>=2.0; extra == "ml"
|
|
38
49
|
Provides-Extra: video
|
|
39
50
|
Requires-Dist: mediapipe>=0.10; extra == "video"
|
|
40
51
|
Requires-Dist: opencv-python>=4.5; extra == "video"
|
|
41
52
|
Provides-Extra: docs
|
|
53
|
+
Requires-Dist: pandas>=2.0; extra == "docs"
|
|
54
|
+
Requires-Dist: matplotlib>=3.7; extra == "docs"
|
|
55
|
+
Requires-Dist: scikit-learn>=1.3; extra == "docs"
|
|
42
56
|
Requires-Dist: m2r2>=0.3; extra == "docs"
|
|
43
57
|
Requires-Dist: sphinx>=7; extra == "docs"
|
|
44
58
|
Requires-Dist: sphinx-autodoc-typehints>=1.24; extra == "docs"
|
|
@@ -86,6 +100,11 @@ Python 3.10 or later is required.
|
|
|
86
100
|
python -m pip install python-intan
|
|
87
101
|
```
|
|
88
102
|
|
|
103
|
+
The base install supports RHD/DAT/NPZ I/O, RHX/LSL streaming, and signal
|
|
104
|
+
processing. CSV/event tables, plotting, and scikit-learn are optional. To
|
|
105
|
+
retain the analysis features previously installed by default, use
|
|
106
|
+
`python -m pip install 'python-intan[analysis]'`.
|
|
107
|
+
|
|
89
108
|
For development from a repository checkout:
|
|
90
109
|
|
|
91
110
|
```bash
|
|
@@ -101,8 +120,11 @@ On Windows PowerShell, use double quotes around extras if your shell configurati
|
|
|
101
120
|
Install only the groups required by your workflow:
|
|
102
121
|
|
|
103
122
|
```bash
|
|
104
|
-
python -m pip install 'python-intan[
|
|
105
|
-
python -m pip install 'python-intan[
|
|
123
|
+
python -m pip install 'python-intan[data]' # pandas CSV/event/metrics tables
|
|
124
|
+
python -m pip install 'python-intan[plot]' # Matplotlib plots
|
|
125
|
+
python -m pip install 'python-intan[analysis]' # data, plotting, and scikit-learn PCA
|
|
126
|
+
python -m pip install 'python-intan[gui]' # analysis features, PyQt5 and pyqtgraph
|
|
127
|
+
python -m pip install 'python-intan[ml]' # analysis features and PyTorch
|
|
106
128
|
python -m pip install 'python-intan[video]' # OpenCV and MediaPipe
|
|
107
129
|
python -m pip install 'python-intan[docs]' # Sphinx documentation build
|
|
108
130
|
python -m pip install 'python-intan[test]' # tests and release validation
|
|
@@ -139,6 +161,58 @@ with IntanRHXDevice(num_channels=32, auto_start=False) as device:
|
|
|
139
161
|
print(window.shape)
|
|
140
162
|
```
|
|
141
163
|
|
|
164
|
+
## Synchronize with a digital pulse
|
|
165
|
+
|
|
166
|
+
Enable recording on the RHX digital input wired to the Pico. Start the
|
|
167
|
+
recording before triggering the Pico, and keep the LED visible to the cameras.
|
|
168
|
+
Read transitions without loading the amplifier data:
|
|
169
|
+
|
|
170
|
+
```python
|
|
171
|
+
from intan.io import read_digital_edges
|
|
172
|
+
|
|
173
|
+
for edge in read_digital_edges("trial.rhd", stream_id="rhx-bench"):
|
|
174
|
+
if edge.line == 4:
|
|
175
|
+
print(edge.segment, edge.sample_number, edge.sample_rate, edge.rising)
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
Lines are one-based, so line 4 corresponds to packed bit 3. Use the sample
|
|
179
|
+
number difference divided by the sample rate to compare pulse intervals
|
|
180
|
+
within a segment. Match the same sequence of rising and falling transitions
|
|
181
|
+
to the LED turning on and off in the video. Keep `time.dat` and the digital
|
|
182
|
+
input files beside `info.rhd` for split recordings. Gaps and counter resets
|
|
183
|
+
suppress transitions at the first sample after the discontinuity.
|
|
184
|
+
|
|
185
|
+
For live timing, enable only the amplifier waveforms and the desired digital
|
|
186
|
+
inputs under **Output to TCP** in RHX. The parser expects one 16-bit packed
|
|
187
|
+
input word after the amplifier samples in each frame. Set `num_channels`
|
|
188
|
+
to the number of streamed amplifier values. For example:
|
|
189
|
+
|
|
190
|
+
```python
|
|
191
|
+
from intan.interface import IntanRHXDevice, LSLOptions
|
|
192
|
+
|
|
193
|
+
def on_chunk(chunk):
|
|
194
|
+
for edge in chunk.digital_edges:
|
|
195
|
+
print(edge.sample_number, edge.rising)
|
|
196
|
+
|
|
197
|
+
with IntanRHXDevice(
|
|
198
|
+
num_channels=32,
|
|
199
|
+
digital_input_lines=(4,),
|
|
200
|
+
on_chunk=on_chunk,
|
|
201
|
+
use_lsl=True,
|
|
202
|
+
lsl_options=LSLOptions(device_timestamps=True),
|
|
203
|
+
) as device:
|
|
204
|
+
device.start_streaming()
|
|
205
|
+
input("Press Enter to stop.\n")
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
The callback runs on the receive thread and also gets the samples, unwrapped
|
|
209
|
+
sample numbers, count of missing samples before the chunk, and host receipt
|
|
210
|
+
time. Keep callback work short. The optional LSL mode anchors the device
|
|
211
|
+
counter to the local LSL clock when the first chunk of each segment arrives
|
|
212
|
+
and advances it at the nominal sample rate. TCP latency affects that anchor
|
|
213
|
+
and hardware clocks can drift. Use the shared Pico pulse for measuring
|
|
214
|
+
alignment. The default LSL mode continues to timestamp chunks at send time.
|
|
215
|
+
|
|
142
216
|
## CLI usage
|
|
143
217
|
|
|
144
218
|
The optional GUI extra installs two console commands:
|
|
@@ -192,7 +266,7 @@ intan/
|
|
|
192
266
|
|
|
193
267
|
## Documentation
|
|
194
268
|
|
|
195
|
-
Published documentation is available on [GitHub Pages](https://neuro-mechatronics-interfaces.github.io/python-intan/). To build it locally:
|
|
269
|
+
Published documentation is available on [GitHub Pages](https://neuro-mechatronics-interfaces.github.io/python-intan/). To build it locally, run these commands from a repository checkout. Documentation sources and media are kept in the repository rather than bundled in package distributions:
|
|
196
270
|
|
|
197
271
|
```bash
|
|
198
272
|
python -m pip install -e '.[docs]'
|