Naplib

Latest version: v2.4.0

Safety actively analyzes 722491 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

2.0.0

-------------
- |MajorFeature| : Added the ``Brain`` class for representing a brain to the ``naplib.localization`` module. This can be used to plot intracranial electrodes on static or interactive 3D brain plots with the ``naplib.visualization module``, estimate anatomical locations of electrodes, calculate statistics on brains, and more. See Examples for illustrations of use-cases.

1.4.0

-------------
- |Enhancement| : Added the ability to load outstructs from matlab which have different variable names, not just 'out'.
- |Enhancement| : Improved the `naplib.io.export_data` function to the matlab outstruct by handling cases where fieldnames are strings characters like spaces which are not allowed in matlab struct field names.

1.3.0

-------------
- |Feature| : Added the function ``peak_rate`` to ``naplib.features`` which can be used to extract peak rate events from an acoustic stimulus. See documentation for details.
- |Feature| : Added the function ``resample_categorical`` to ``naplib.array_ops`` which can be used to resample categorical data.
- |Feature| : Added the function ``forward_fill`` to ``naplib.array_ops`` for fast forward-filling of nan values in an array.
- |Enhancement| : Added the parameter ``average`` to ``naplib.stats.responsive_ttest`` to enable more robust t-test statistics when there are enough trials. See documentation for details.

1.2.0

-------------
- |Enhancement| : Added the parameter ``makedirs`` to ``naplib.io.save`` to enable the automatic creation of directories in the path for the filename provided.
- |Feature| : Added the function ``shift_label_onsets`` to ``naplib.segmentation`` which can be used to shift label vectors such as to segment data by word centers when only word onsets are aligned.

1.1.0

-------------
- |API| |FIX| : Added a ``pre_post`` argument to ``stats.responsive_ttest`` to allow greater flexibility to how the responsiveness test is conducted. Also fixed a minor issue with how the test was being computed.
- |Enhancement| : Added the function ``visualization.eeg_locs`` to load the EEG channel locations which can be used with MNE ``plot_topomap`` to plot EEG channel data on a scalp.

1.0.0

-------------
- |API| : Renamed ``stats.fratio`` to ``stats.discriminability`` and added Wilks' Lambda f-statistic as a method for computing disciminability.
- |API| : Changed all plotting function names to snake case. See API reference for details.
- |Efficiency| : Several large enhancements to the computation speed of several preprocessing steps.
- |Feature| : Added ``io.load_cnd`` function to load Continuous-event Neural Data (CND) format.

Page 1 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.