py-neuromodulation 0.0.4__py3-none-any.whl → 0.0.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. py_neuromodulation/ConnectivityDecoding/_get_grid_hull.m +34 -34
  2. py_neuromodulation/ConnectivityDecoding/_get_grid_whole_brain.py +95 -106
  3. py_neuromodulation/ConnectivityDecoding/_helper_write_connectome.py +107 -119
  4. py_neuromodulation/FieldTrip.py +589 -589
  5. py_neuromodulation/__init__.py +74 -13
  6. py_neuromodulation/_write_example_dataset_helper.py +83 -65
  7. py_neuromodulation/data/README +6 -6
  8. py_neuromodulation/data/dataset_description.json +8 -8
  9. py_neuromodulation/data/participants.json +32 -32
  10. py_neuromodulation/data/participants.tsv +2 -2
  11. py_neuromodulation/data/sub-testsub/ses-EphysMedOff/ieeg/sub-testsub_ses-EphysMedOff_space-mni_coordsystem.json +5 -5
  12. py_neuromodulation/data/sub-testsub/ses-EphysMedOff/ieeg/sub-testsub_ses-EphysMedOff_space-mni_electrodes.tsv +11 -11
  13. py_neuromodulation/data/sub-testsub/ses-EphysMedOff/ieeg/sub-testsub_ses-EphysMedOff_task-gripforce_run-0_channels.tsv +11 -11
  14. py_neuromodulation/data/sub-testsub/ses-EphysMedOff/ieeg/sub-testsub_ses-EphysMedOff_task-gripforce_run-0_ieeg.json +18 -18
  15. py_neuromodulation/data/sub-testsub/ses-EphysMedOff/ieeg/sub-testsub_ses-EphysMedOff_task-gripforce_run-0_ieeg.vhdr +35 -35
  16. py_neuromodulation/data/sub-testsub/ses-EphysMedOff/ieeg/sub-testsub_ses-EphysMedOff_task-gripforce_run-0_ieeg.vmrk +13 -13
  17. py_neuromodulation/data/sub-testsub/ses-EphysMedOff/sub-testsub_ses-EphysMedOff_scans.tsv +2 -2
  18. py_neuromodulation/grid_cortex.tsv +40 -40
  19. py_neuromodulation/liblsl/libpugixml.so.1.12 +0 -0
  20. py_neuromodulation/liblsl/linux/bionic_amd64/liblsl.1.16.2.so +0 -0
  21. py_neuromodulation/liblsl/linux/bookworm_amd64/liblsl.1.16.2.so +0 -0
  22. py_neuromodulation/liblsl/linux/focal_amd46/liblsl.1.16.2.so +0 -0
  23. py_neuromodulation/liblsl/linux/jammy_amd64/liblsl.1.16.2.so +0 -0
  24. py_neuromodulation/liblsl/linux/jammy_x86/liblsl.1.16.2.so +0 -0
  25. py_neuromodulation/liblsl/linux/noble_amd64/liblsl.1.16.2.so +0 -0
  26. py_neuromodulation/liblsl/macos/amd64/liblsl.1.16.2.dylib +0 -0
  27. py_neuromodulation/liblsl/macos/arm64/liblsl.1.16.0.dylib +0 -0
  28. py_neuromodulation/liblsl/windows/amd64/liblsl.1.16.2.dll +0 -0
  29. py_neuromodulation/liblsl/windows/x86/liblsl.1.16.2.dll +0 -0
  30. py_neuromodulation/nm_IO.py +413 -417
  31. py_neuromodulation/nm_RMAP.py +496 -531
  32. py_neuromodulation/nm_analysis.py +993 -1074
  33. py_neuromodulation/nm_artifacts.py +30 -25
  34. py_neuromodulation/nm_bispectra.py +154 -168
  35. py_neuromodulation/nm_bursts.py +292 -198
  36. py_neuromodulation/nm_coherence.py +251 -205
  37. py_neuromodulation/nm_database.py +149 -0
  38. py_neuromodulation/nm_decode.py +918 -992
  39. py_neuromodulation/nm_define_nmchannels.py +300 -302
  40. py_neuromodulation/nm_features.py +144 -116
  41. py_neuromodulation/nm_filter.py +219 -219
  42. py_neuromodulation/nm_filter_preprocessing.py +79 -91
  43. py_neuromodulation/nm_fooof.py +139 -159
  44. py_neuromodulation/nm_generator.py +45 -37
  45. py_neuromodulation/nm_hjorth_raw.py +52 -73
  46. py_neuromodulation/nm_kalmanfilter.py +71 -58
  47. py_neuromodulation/nm_linelength.py +21 -33
  48. py_neuromodulation/nm_logger.py +66 -0
  49. py_neuromodulation/nm_mne_connectivity.py +149 -112
  50. py_neuromodulation/nm_mnelsl_generator.py +90 -0
  51. py_neuromodulation/nm_mnelsl_stream.py +116 -0
  52. py_neuromodulation/nm_nolds.py +96 -93
  53. py_neuromodulation/nm_normalization.py +173 -214
  54. py_neuromodulation/nm_oscillatory.py +423 -448
  55. py_neuromodulation/nm_plots.py +585 -612
  56. py_neuromodulation/nm_preprocessing.py +83 -0
  57. py_neuromodulation/nm_projection.py +370 -394
  58. py_neuromodulation/nm_rereference.py +97 -95
  59. py_neuromodulation/nm_resample.py +59 -50
  60. py_neuromodulation/nm_run_analysis.py +325 -435
  61. py_neuromodulation/nm_settings.py +289 -68
  62. py_neuromodulation/nm_settings.yaml +244 -0
  63. py_neuromodulation/nm_sharpwaves.py +423 -401
  64. py_neuromodulation/nm_stats.py +464 -480
  65. py_neuromodulation/nm_stream.py +398 -0
  66. py_neuromodulation/nm_stream_abc.py +166 -218
  67. py_neuromodulation/nm_types.py +193 -0
  68. {py_neuromodulation-0.0.4.dist-info → py_neuromodulation-0.0.5.dist-info}/METADATA +29 -26
  69. py_neuromodulation-0.0.5.dist-info/RECORD +83 -0
  70. {py_neuromodulation-0.0.4.dist-info → py_neuromodulation-0.0.5.dist-info}/WHEEL +1 -1
  71. {py_neuromodulation-0.0.4.dist-info → py_neuromodulation-0.0.5.dist-info}/licenses/LICENSE +21 -21
  72. py_neuromodulation/nm_EpochStream.py +0 -92
  73. py_neuromodulation/nm_across_patient_decoding.py +0 -927
  74. py_neuromodulation/nm_cohortwrapper.py +0 -435
  75. py_neuromodulation/nm_eval_timing.py +0 -239
  76. py_neuromodulation/nm_features_abc.py +0 -39
  77. py_neuromodulation/nm_settings.json +0 -338
  78. py_neuromodulation/nm_stream_offline.py +0 -359
  79. py_neuromodulation/utils/_logging.py +0 -24
  80. py_neuromodulation-0.0.4.dist-info/RECORD +0 -72
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: py_neuromodulation
3
- Version: 0.0.4
3
+ Version: 0.0.5
4
4
  Summary: Real-time analysis of intracranial neurophysiology recordings.
5
5
  Project-URL: bugtracker, https://github.com/neuromodulation/py_neuromodulation/issues
6
6
  Project-URL: repository, https://github.com/neuromodulation/py_neuromodulation
@@ -34,39 +34,55 @@ Classifier: License :: OSI Approved :: MIT License
34
34
  Classifier: Programming Language :: Python
35
35
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
36
36
  Requires-Python: >=3.10
37
- Requires-Dist: black>=24.2.0
38
37
  Requires-Dist: filterpy>=1.4.5
39
38
  Requires-Dist: fooof
40
39
  Requires-Dist: hatch>=1.9.4
41
40
  Requires-Dist: imbalanced-learn
42
- Requires-Dist: ipython
43
41
  Requires-Dist: joblib>=1.3.2
44
- Requires-Dist: matplotlib>=3.3.4
42
+ Requires-Dist: matplotlib>=3.9.0
45
43
  Requires-Dist: mne
46
44
  Requires-Dist: mne-bids>=0.8
47
45
  Requires-Dist: mne-connectivity
46
+ Requires-Dist: mne-lsl>=1.2.0
48
47
  Requires-Dist: mrmr-selection
48
+ Requires-Dist: nibabel>=5.2.1
49
49
  Requires-Dist: nolds
50
- Requires-Dist: notebook
51
50
  Requires-Dist: numpy>=1.21.2
52
- Requires-Dist: pandas>=1.2.2
53
- Requires-Dist: pip
51
+ Requires-Dist: pandas>=2.0.0
52
+ Requires-Dist: pip>=24.2
54
53
  Requires-Dist: pyarrow>=14.0.2
55
- Requires-Dist: pybids
56
54
  Requires-Dist: pybispectra>=1.0.0
55
+ Requires-Dist: pydantic>=2.7.3
57
56
  Requires-Dist: pynput
58
57
  Requires-Dist: pyparrm
59
- Requires-Dist: pytest>=8.0.2
58
+ Requires-Dist: pyqt5
60
59
  Requires-Dist: scikit-image
61
60
  Requires-Dist: scikit-learn>=0.24.2
62
61
  Requires-Dist: scikit-optimize
63
62
  Requires-Dist: scipy>=1.7.1
64
63
  Requires-Dist: seaborn>=0.11
65
- Requires-Dist: wget
64
+ Requires-Dist: statsmodels
66
65
  Provides-Extra: dev
67
- Requires-Dist: black; extra == 'dev'
68
- Requires-Dist: pytest; extra == 'dev'
66
+ Requires-Dist: notebook; extra == 'dev'
69
67
  Requires-Dist: pytest-cov; extra == 'dev'
68
+ Requires-Dist: pytest-sugar; extra == 'dev'
69
+ Requires-Dist: pytest>=8.0.2; extra == 'dev'
70
+ Requires-Dist: ruff; extra == 'dev'
71
+ Provides-Extra: docs
72
+ Requires-Dist: notebook; extra == 'docs'
73
+ Requires-Dist: numpydoc; extra == 'docs'
74
+ Requires-Dist: pydata-sphinx-theme; extra == 'docs'
75
+ Requires-Dist: pytest-cov; extra == 'docs'
76
+ Requires-Dist: pytest-sugar; extra == 'docs'
77
+ Requires-Dist: pytest>=8.0.2; extra == 'docs'
78
+ Requires-Dist: recommonmark; extra == 'docs'
79
+ Requires-Dist: ruff; extra == 'docs'
80
+ Requires-Dist: sphinx; extra == 'docs'
81
+ Requires-Dist: sphinx-gallery; extra == 'docs'
82
+ Requires-Dist: sphinx-togglebutton; extra == 'docs'
83
+ Provides-Extra: test
84
+ Requires-Dist: pytest-xdist; extra == 'test'
85
+ Requires-Dist: pytest>=8.0.2; extra == 'test'
70
86
  Description-Content-Type: text/x-rst
71
87
 
72
88
  py_neuromodulation
@@ -111,23 +127,10 @@ py_neuromodulation requires at least python 3.10. For installation you can use p
111
127
 
112
128
  pip install py-neuromodulation
113
129
 
114
-
115
- We recommend however installing the package using `rye <https://rye-up.com/guide/installation/>`_:
116
-
117
- .. code-block::
118
-
119
- git clone https://github.com/neuromodulation/py_neuromodulation.git
120
- rye pin 3.11
121
- rye sync
122
-
123
- And then activating the virtual environment e.g. in Windows using:
130
+ Alternatively you can also install the package in a conda environment:
124
131
 
125
132
  .. code-block::
126
133
 
127
- .\.venv\Scripts\activate
128
-
129
- Alternatively you can also install the package in a conda environment:
130
-
131
134
  conda create -n pynm-test python=3.11
132
135
  conda activate pynm-test
133
136
 
@@ -0,0 +1,83 @@
1
+ py_neuromodulation/FieldTrip.py,sha256=SNP_hmHWbOHhnoZqk6hS_aUMRPzuqoZuvojzg2BvvUw,18008
2
+ py_neuromodulation/__init__.py,sha256=R5uKBJtyVshkLnAlkTLxCwHg8gBhmRWvgVM2_vLsT0M,2670
3
+ py_neuromodulation/_write_example_dataset_helper.py,sha256=2I3FMumu6fgvvn8KPNwSqppCu3cgaIxJP5GzYEwt1fI,2524
4
+ py_neuromodulation/grid_cortex.tsv,sha256=k2QOkHY1ej3lJ33LD6DOPVlTynzB3s4BYaoQaoUCyYc,643
5
+ py_neuromodulation/grid_subcortex.tsv,sha256=oCQDYLDdYSa1DAI9ybwECfuzWulFzXqKHyf7oZ1oDBM,25842
6
+ py_neuromodulation/nm_IO.py,sha256=7QtlKKiTcSBOfYusyfbF38Piu_MgQQdp1g6VRoA0Af8,11335
7
+ py_neuromodulation/nm_RMAP.py,sha256=4hdB_LytcP1QOHEXMQeFa1fRm4_WNu_NgYyqOo8kNiE,15007
8
+ py_neuromodulation/nm_analysis.py,sha256=A69X218R4qZl9pEGz_fmq94BjN5UzDir_EllR87bU4Q,35610
9
+ py_neuromodulation/nm_artifacts.py,sha256=EyFx7xr2O0DHPXgrFmFeW52jlxKv3Zt-ItQy97ec-a4,843
10
+ py_neuromodulation/nm_bispectra.py,sha256=vmaLeNLlxejBFsEcKDddd-75299KPUTtsJM6hnAEdhI,5569
11
+ py_neuromodulation/nm_bursts.py,sha256=1Yns30S4fYi0slo0oje86JPCs4IOTmREuCHPI6QwGRc,11234
12
+ py_neuromodulation/nm_coherence.py,sha256=dJVTPXeYxub4cM-TYQ21-j-3588ml2jTHtsEgQFEtdE,8731
13
+ py_neuromodulation/nm_database.py,sha256=R7KetIS9Wv-q5OSziEcUFYVk0LLrRaVD96JbTt16A4E,4749
14
+ py_neuromodulation/nm_decode.py,sha256=nn2sODnvDj5dZKAR3RucyKm90W65tLOI9jQvq5-a3C0,33176
15
+ py_neuromodulation/nm_define_nmchannels.py,sha256=rjPJMMhHcsMF_TKpXhekHfOPwZlHklhoofNiKJQrlu0,10537
16
+ py_neuromodulation/nm_features.py,sha256=da6Ah5qgddEije6SfxQXhzZVQ1QKpITmBC1ozr-A4Cc,4975
17
+ py_neuromodulation/nm_filter.py,sha256=cWoF7a5Vn2OjCSGsEed2JRZJEsI4cajpht3xExGIEZg,7570
18
+ py_neuromodulation/nm_filter_preprocessing.py,sha256=JuYBzVkpDTZP8WnHCyKdTEi9NW-JbRAXxhW83RAyUCs,2882
19
+ py_neuromodulation/nm_fooof.py,sha256=l7hAa3BQ6q-aFNlKhMfgsoiIpPDW_KpWko_EFMRVma8,5079
20
+ py_neuromodulation/nm_generator.py,sha256=kyVmI6R-TOhq5EATLpZND311oFP1Xx9ey_ieGf529nI,1403
21
+ py_neuromodulation/nm_hjorth_raw.py,sha256=DptET2nFi8dPSuzt4eTltul4Mg5k709VWdnKSVVc4Xw,1777
22
+ py_neuromodulation/nm_kalmanfilter.py,sha256=jpJXwg4cxiqHnwgMVMA6A3b_I4q95zotafhDyJdhOZw,1983
23
+ py_neuromodulation/nm_linelength.py,sha256=GUZ39tl3Bx3UT5MmAFJ15bvETxheS-0Uynv7Aunw8pY,626
24
+ py_neuromodulation/nm_logger.py,sha256=hcE2LiSIyJES5IeFw54QAhqVqbjdO3YnyUGJ9oaRTrE,2181
25
+ py_neuromodulation/nm_mne_connectivity.py,sha256=h_JOgCc3qV1Awpnlm61LPiTcemOBjOlFnEqtqhLjcRk,5724
26
+ py_neuromodulation/nm_mnelsl_generator.py,sha256=dEwVZwK9SgFjqf-N7I8n08Dgt__J6aqJue-zNoCl5rA,2897
27
+ py_neuromodulation/nm_mnelsl_stream.py,sha256=lXGR7u99PhHdP8TsywWDDfbP1Msj7TIKUTtxui2-v2E,4488
28
+ py_neuromodulation/nm_nolds.py,sha256=gsrCQBEfKstDdkYfbhPoZq5jU6s2C450NmbO46R9F3w,3460
29
+ py_neuromodulation/nm_normalization.py,sha256=JbGOntJVKnj2j2RjQ6F4OQQS1gUjuu4TAnBmB5ilu4Q,5492
30
+ py_neuromodulation/nm_oscillatory.py,sha256=YUeCQHV6hOKlWFH3bqHbT1FWVLKV7vHlaMsAEkXmpMc,14095
31
+ py_neuromodulation/nm_plots.py,sha256=3n0lrRVj1iDkPjO4dbGHdjECp47ygMMvkH1Vi31PYVA,16679
32
+ py_neuromodulation/nm_preprocessing.py,sha256=MHNOAisKgDN0qEIFoCw4eGNw6aoDMTFgx2AmoFVyqlY,3278
33
+ py_neuromodulation/nm_projection.py,sha256=YMa0HIwsAvmk68FuzrzLe2APtLhzvSPAyRMZ0MtHw6o,14720
34
+ py_neuromodulation/nm_rereference.py,sha256=ecixjJdhiyPGGID0hMvSPrTv_WZKhgKMDLHjM2Txifo,3354
35
+ py_neuromodulation/nm_resample.py,sha256=vYkYfaG8duUbnJ0ssXhqUM6-3sUJP5NesPgqEkJ0g9w,1276
36
+ py_neuromodulation/nm_run_analysis.py,sha256=xXGVCF7d0PLroZljktlGbMnx5B4t6RH918uTFvN6AiM,11261
37
+ py_neuromodulation/nm_settings.py,sha256=IrRBcw0F3cv_VlfnEN8nReEfwopWjY8aiVR45w4J9Ew,10068
38
+ py_neuromodulation/nm_settings.yaml,sha256=rnKOvFt06Pk3VQjyIMh4UcnIufxzSZBr3Ag7s8rhyEQ,5502
39
+ py_neuromodulation/nm_sharpwaves.py,sha256=d_zUXVX5b9YRXOm0F5S9l3-SAaONJhKzhj1uK3SGUk0,16527
40
+ py_neuromodulation/nm_stats.py,sha256=8lbG85VixiQNT1hLMVVQPUoZbhZFx-xyE3w7nV193fE,15318
41
+ py_neuromodulation/nm_stream.py,sha256=7cSIl8JCwLOzBu6nFnDjHc5pPKcyM2ptcpg1T-TKcwA,13851
42
+ py_neuromodulation/nm_stream_abc.py,sha256=OKoZJu2eZTIuuLNyX6sGoMXsr8ryU1T770XyKUpndqc,6155
43
+ py_neuromodulation/nm_types.py,sha256=dSmqnLHaSPqBk32Farr3r9SptMyZBdWX8XW0RjBmjv4,5497
44
+ py_neuromodulation/ConnectivityDecoding/Automated Anatomical Labeling 3 (Rolls 2020).nii,sha256=Sp-cjF_AuT0Tlilb5s8lB14hVgkXJiR2uKMS9nOQOeg,902981
45
+ py_neuromodulation/ConnectivityDecoding/_get_grid_hull.m,sha256=2RPDGotbLsCzDJLFB2JXatJtfOMno9UUBCBnsOuse8A,714
46
+ py_neuromodulation/ConnectivityDecoding/_get_grid_whole_brain.py,sha256=VsInAIADIf9d3unxUSN0B50aU472IQocGZ-kyG8A7Fc,3066
47
+ py_neuromodulation/ConnectivityDecoding/_helper_write_connectome.py,sha256=1DNrccrJqrH5PIW2yp24xbyqRrsRz98Gof5aPQZUUUE,3423
48
+ py_neuromodulation/ConnectivityDecoding/mni_coords_cortical_surface.mat,sha256=AZc0mgiAiqXVAxAnfxwICeh-dQX62RfTeRN_knS-i60,11622
49
+ py_neuromodulation/ConnectivityDecoding/mni_coords_whole_brain.mat,sha256=YxT9nrXZ2IECheEhN1SgSsqNyihHUTLuZQ7o5yP4Q-c,29864
50
+ py_neuromodulation/ConnectivityDecoding/rmap_func_all.nii,sha256=WjVA02B2cGNi670_45fdNssspf8GKbkKgRStZ2d4_FU,7221384
51
+ py_neuromodulation/ConnectivityDecoding/rmap_struc.nii,sha256=XsEMjsCxjAsMFvw1_jpQ-wIU2BUuZ_lISPwMa7zDmDk,7221384
52
+ py_neuromodulation/data/README,sha256=8PhEkUm8F2NgL7A5co1CgfumAMB14v5XPIbk54SvtAE,708
53
+ py_neuromodulation/data/dataset_description.json,sha256=HMHtmF0bbw9XO79GAyRt8urpEyxRJ5A1REcYos8D2s0,122
54
+ py_neuromodulation/data/participants.json,sha256=S4rrcSAmLcL_jLk9IY_cwJBipl8OwwCvouZ7tsgdldw,756
55
+ py_neuromodulation/data/participants.tsv,sha256=-dg_i5N4I-Cp1l21433z1lDjXUmcuTn8S3UqkxPvgdI,77
56
+ py_neuromodulation/data/sub-testsub/ses-EphysMedOff/sub-testsub_ses-EphysMedOff_scans.tsv,sha256=iz6Nvf_E5jChjacmO_eAxX7Y8rR8v03-gGdUeBlyDVY,89
57
+ py_neuromodulation/data/sub-testsub/ses-EphysMedOff/ieeg/sub-testsub_ses-EphysMedOff_space-mni_coordsystem.json,sha256=dq0Vc2fIR-YvbCEqBb7lq3P_YkOOzkKe1Hh-a1gd46E,118
58
+ py_neuromodulation/data/sub-testsub/ses-EphysMedOff/ieeg/sub-testsub_ses-EphysMedOff_space-mni_electrodes.tsv,sha256=Kr9vKh1qnnwFQE0Cet7PkeVuuGx1u-CT_xXs4qucezg,722
59
+ py_neuromodulation/data/sub-testsub/ses-EphysMedOff/ieeg/sub-testsub_ses-EphysMedOff_task-gripforce_run-0_channels.tsv,sha256=ZSixrfpSlNEfmv0diaJ96usFPwPtO_dA6CCDYDp85KY,779
60
+ py_neuromodulation/data/sub-testsub/ses-EphysMedOff/ieeg/sub-testsub_ses-EphysMedOff_task-gripforce_run-0_ieeg.eeg,sha256=NnQeMDrKpeK3lctIZ5Bzh85UMTs5OCUCaivn_NU5rc4,760040
61
+ py_neuromodulation/data/sub-testsub/ses-EphysMedOff/ieeg/sub-testsub_ses-EphysMedOff_task-gripforce_run-0_ieeg.json,sha256=nRPEWAa0isyDKbeW1IPhL9ECWkzqfQw1sKwJkZU3vbk,474
62
+ py_neuromodulation/data/sub-testsub/ses-EphysMedOff/ieeg/sub-testsub_ses-EphysMedOff_task-gripforce_run-0_ieeg.vhdr,sha256=-QEHwQjJb9Hp9yudEawqhQl8vrD8bYqiuvlF4cyPNg0,988
63
+ py_neuromodulation/data/sub-testsub/ses-EphysMedOff/ieeg/sub-testsub_ses-EphysMedOff_task-gripforce_run-0_ieeg.vmrk,sha256=BD-VmcKe7dR0vGzzkv4c09QnSwc3zYeAWDGJIzWEOI0,540
64
+ py_neuromodulation/liblsl/libpugixml.so.1.12,sha256=_bCOHUjcnGpDiROg1qjgty8ZQhcKHSnaCIP6SMgw6SY,240248
65
+ py_neuromodulation/liblsl/linux/bionic_amd64/liblsl.1.16.2.so,sha256=YXFbA23CQqWg6mWhk-73WY9gSx79NtgnBr6UFVByC2I,1033592
66
+ py_neuromodulation/liblsl/linux/bookworm_amd64/liblsl.1.16.2.so,sha256=3gKI0HsheWJvFgZdnT27Ev824y7rkOOCVRiHdAlKHUM,791688
67
+ py_neuromodulation/liblsl/linux/focal_amd46/liblsl.1.16.2.so,sha256=OCVevlOtKPblu7lWFN_x4HIibxfihgoPzQtGjsYEXUo,923264
68
+ py_neuromodulation/liblsl/linux/jammy_amd64/liblsl.1.16.2.so,sha256=MSmfv900ShdCj3-ipsADxmbiTg3WoZ_SvUrByeZB45g,935392
69
+ py_neuromodulation/liblsl/linux/jammy_x86/liblsl.1.16.2.so,sha256=MSmfv900ShdCj3-ipsADxmbiTg3WoZ_SvUrByeZB45g,935392
70
+ py_neuromodulation/liblsl/linux/noble_amd64/liblsl.1.16.2.so,sha256=-p_sEh6LuxDKKVVcT5Y0Loeq7FK11LoE34RmMIKqdaw,3009496
71
+ py_neuromodulation/liblsl/macos/amd64/liblsl.1.16.2.dylib,sha256=7BLTPGbq7ISuG3ZdLUem7fER6ZXrYYryY477b3j4lNw,807896
72
+ py_neuromodulation/liblsl/macos/arm64/liblsl.1.16.0.dylib,sha256=UD228wOmdFIY9WKmpYgWKeJuVQ6wqI6K2EWWk1G3vM8,758048
73
+ py_neuromodulation/liblsl/windows/amd64/liblsl.1.16.2.dll,sha256=M4tzeUOkvXv5_3GZheWJJ74q1AAIIGmcEZLugJIHxGo,804864
74
+ py_neuromodulation/liblsl/windows/x86/liblsl.1.16.2.dll,sha256=UBdyYfWp7CpydLo1I0nsCSM1uHnnbNrF2FF1fHuOops,599040
75
+ py_neuromodulation/plots/STN_surf.mat,sha256=Hh2nfQRmP0TYIt8SWV-ajKnC8yk7EmBoAj1c6RMoi9g,124526
76
+ py_neuromodulation/plots/Vertices.mat,sha256=k72WB8-0Datt-bRScxcfpp38LBPHV34zzodS49kQAgs,3709780
77
+ py_neuromodulation/plots/faces.mat,sha256=gWSr-9qNxsAPoG8q-muNnaFZHVHGKqnKN0j3Q1JfMk4,2859245
78
+ py_neuromodulation/plots/grid.mat,sha256=G3MYIVcvk8lbf_kKWIe3lZZ4d0QV6HkoLsOFN1A2vhE,775
79
+ py_neuromodulation/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
80
+ py_neuromodulation-0.0.5.dist-info/METADATA,sha256=5IJGPs-8SN-Glc-oqVZ1QmTkJMn0SJLx5jQRjz0DO9M,7439
81
+ py_neuromodulation-0.0.5.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
82
+ py_neuromodulation-0.0.5.dist-info/licenses/LICENSE,sha256=EMBwuBRPBo-WkHSjqxZ55E6j95gKNBZ8x30pt-VGfrM,1118
83
+ py_neuromodulation-0.0.5.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.24.1
2
+ Generator: hatchling 1.25.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2021 Interventional Cognitive Neuromodulation - Neumann Lab Berlin
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Interventional Cognitive Neuromodulation - Neumann Lab Berlin
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,92 +0,0 @@
1
- import os
2
- import pickle
3
-
4
- import numpy as np
5
- import pandas as pd
6
-
7
- import py_neuromodulation as nm
8
- from py_neuromodulation import nm_generator
9
-
10
-
11
- class EpochStream(nm.nm_stream.PNStream):
12
- def __init__(self) -> None:
13
- super().__init__()
14
-
15
- def read_epoch_data(self, path_epoch) -> None:
16
- """Read npy array of epochs. Shape is assumed to be (samples, channels, time)
17
-
18
- Parameters
19
- ----------
20
- path_epoch : str
21
- """
22
- self.data = np.load(path_epoch)
23
-
24
- def get_data(
25
- self,
26
- ) -> np.array:
27
- """This data generator returns one epoch at a time.
28
- Data will thus be analyzed in steps of the epoch size
29
-
30
- Returns
31
- -------
32
- np.array
33
- _description_
34
-
35
- Yields
36
- ------
37
- Iterator[np.array]
38
- _description_
39
- """
40
- for n_batch in range(self.data.shape[0]):
41
- yield self.data[n_batch, :, :]
42
-
43
- def run(
44
- self,
45
- ):
46
- self._set_run()
47
- # shape is n, channels=7, 800 Hz
48
-
49
- self.feature_arr = pd.DataFrame()
50
- self.feature_arr_list = []
51
- epoch_gen = self.get_data()
52
- idx_epoch = 0
53
-
54
- while True:
55
- data = next(
56
- epoch_gen, None
57
- ) # None will be returned if generator ran through
58
- if data is None:
59
- break
60
- gen = nm_generator.raw_data_generator(
61
- data, self.settings, self.sfreq
62
- )
63
-
64
- def get_data_within_epoch() -> np.array:
65
- return next(gen, None)
66
-
67
- idx_within_epoch = 0
68
- while True:
69
- data_within_epoch = get_data_within_epoch()
70
- if data_within_epoch is None:
71
- break
72
-
73
- feature_series = self.run_analysis.process_data(
74
- data_within_epoch
75
- )
76
- if idx_within_epoch == 0:
77
- self.feature_arr = pd.DataFrame([feature_series])
78
- idx_within_epoch += 1
79
- else:
80
- self.feature_arr = self.feature_arr.append(
81
- feature_series, ignore_index=True
82
- )
83
- self.feature_arr_list.append(self.feature_arr)
84
-
85
- def _add_timestamp(
86
- self, feature_series: pd.Series, idx: int = None
87
- ) -> pd.Series:
88
- # in case of epochs no timestamp is necessary
89
- return feature_series
90
-
91
- def _add_coordinates(self) -> None:
92
- pass