Skip to content

Commit

Permalink
Merge pull request #391 from pynapple-org/dev
Browse files Browse the repository at this point in the history
Bump 0.8.0
  • Loading branch information
gviejo authored Jan 15, 2025
2 parents 9bccc4b + 86805f4 commit e907880
Show file tree
Hide file tree
Showing 114 changed files with 7,924 additions and 7,678 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ jobs:
black --check pynapple
isort --check pynapple --profile black
flake8 pynapple --max-complexity 10
black --check tests
isort --check tests --profile black
test:
needs: lint
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -84,7 +85,7 @@ jobs:
with:
directory: "./doc/_build/html"
# The directory to scan
arguments: --checks Links,Scripts --ignore-urls "https://fonts.gstatic.com,https://mkdocs-gallery.github.io,./doc/_build/html/_static/" --assume-extension --check-external-hash --ignore-status-codes 403 --ignore-files "/.+\/html\/_static\/.+/"
arguments: --checks Links,Scripts --ignore-urls "https://fonts.gstatic.com,https://mkdocs-gallery.github.io,./doc/_build/html/_static/,https://www.nature.com/articles/s41593-022-01020-w" --assume-extension --check-external-hash --ignore-status-codes 403 --ignore-files "/.+\/html\/_static\/.+/"
# The arguments to pass to HTMLProofer


Expand Down
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
/docs/generated/gallery/*.py
/docs/generated/gallery/*.zip

/doc/generated
/doc/examples/nwb-cache
/doc/_build

/tests/npzfilestest

# Byte-compiled / optimized / DLL files
Expand Down Expand Up @@ -152,4 +156,7 @@ tutorials/data/KA28-190405/

old
data
your
your

# Ignore npz files from testing:
tests/*.npz
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<!-- ![pic1](banner_logo.png) -->
<p align="center">
<img width="60%" src="docs/images/banner_logo.png">
</p>


<!-- ========================== -->

[![image](https://img.shields.io/pypi/v/pynapple.svg)](https://pypi.python.org/pypi/pynapple)
[![pynapple CI](https://github.com/pynapple-org/pynapple/actions/workflows/main.yml/badge.svg)](https://github.com/pynapple-org/pynapple/actions/workflows/main.yml)
Expand Down Expand Up @@ -157,7 +151,7 @@ Shown below, the final figure from the example code displays the firing rate of

<!-- ![pic1](readme_figure.png) -->
<p align="center">
<img width="80%" src="docs/images/readme_figure.png">
<img width="80%" src="doc/_static/readme_figure.png">
</p>


Expand Down
206 changes: 206 additions & 0 deletions doc/_static/logo_flatiron_white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
12 changes: 6 additions & 6 deletions doc/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Core objects

.. rubric:: Time Series

.. currentmodule:: pynapple.core.time_series
.. currentmodule:: pynapple

.. autosummary::
:toctree: generated/
Expand All @@ -22,7 +22,7 @@ Core objects

.. rubric:: Intervals

.. currentmodule:: pynapple.core.interval_set
.. currentmodule:: pynapple

.. autosummary::
:toctree: generated/
Expand All @@ -34,7 +34,7 @@ Core objects

.. rubric:: Timestamps

.. currentmodule:: pynapple.core.time_series
.. currentmodule:: pynapple

.. autosummary::
:toctree: generated/
Expand All @@ -45,7 +45,7 @@ Core objects

.. rubric:: Group of timestamps

.. currentmodule:: pynapple.core.ts_group
.. currentmodule:: pynapple

.. autosummary::
:toctree: generated/
Expand All @@ -58,7 +58,7 @@ Core objects
Input-Ouput
-----------

.. currentmodule:: pynapple.io.interface_nwb
.. currentmodule:: pynapple.io

.. rubric:: Neurodata Without Borders (NWB)

Expand All @@ -70,7 +70,7 @@ Input-Ouput
NWBFile


.. currentmodule:: pynapple.io.interface_npz
.. currentmodule:: pynapple.io

.. rubric:: Numpy files

Expand Down
4 changes: 2 additions & 2 deletions doc/examples/tutorial_HD_dataset.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ tuning_curves = nap.compute_1d_tuning_curves(
group=spikes_adn,
feature=angle,
nb_bins=61,
ep = epochs['wake'],
ep=epochs[epochs.tags == "wake"],
minmax=(0, 2 * np.pi)
)
```
Expand Down Expand Up @@ -199,7 +199,7 @@ To decode the population activity, we will be using a Bayesian Decoder as implem
decoded, proba_feature = nap.decode_1d(
tuning_curves=tuning_curves,
group=spikes_adn,
ep=epochs["wake"],
ep=epochs[epochs.tags == "wake"],
bin_size=0.1, # second
feature=angle,
)
Expand Down
10 changes: 8 additions & 2 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pynapple: python neural analysis package

.. grid-item-card:: Time Series
:text-align: center
:link: ./user_guide/04_core_methods.html
:link: ./user_guide/03_core_methods.html

.. image:: _static/example_thumbs/timeseries.svg
:class: dark-light
Expand Down Expand Up @@ -97,7 +97,7 @@ pynapple: python neural analysis package
.. image:: _static/example_thumbs/tuningcurves.svg
:class: dark-light

.. grid-item-card:: Wavelets
.. grid-item-card:: Spectrogram
:text-align: center
:link: ./user_guide/11_wavelets.html

Expand All @@ -120,5 +120,11 @@ This package is supported by the Center for Computational Neuroscience, in the F

.. image:: _static/CCN-logo-wText.png
:width: 200px
:class: only-light
:target: https://www.simonsfoundation.org/flatiron/center-for-computational-neuroscience/

.. image:: _static/logo_flatiron_white.svg
:width: 200px
:class: only-dark
:target: https://www.simonsfoundation.org/flatiron/center-for-computational-neuroscience/

5 changes: 5 additions & 0 deletions doc/releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ of the Flatiron institute.

## Releases

### 0.8.0 (2025-01-15)

- New private class: `_MetadataMixin` (core/metadata_class.py). Can be inherited by `IntervalSet`, `TsdFrame` and `TsGroup`.
- `decode_1d` and `decode_2d` now accepts `TsdFrame` as input.

### 0.7.1 (2024-09-24)

- Fixing nan issue when computing 1d tuning curve (See issue #334).
Expand Down
6 changes: 5 additions & 1 deletion doc/user_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ Interaction with numpy <user_guide/03_interacting_with_numpy>
```

```{toctree}
Core methods <user_guide/04_core_methods>
Core methods <user_guide/03_core_methods>
```

```{toctree}
Metadata <user_guide/03_metadata>
```
:::

Expand Down
Loading

0 comments on commit e907880

Please sign in to comment.