Skip to content

Commit

Permalink
Merge pull request #205 from pynapple-org/dev
Browse files Browse the repository at this point in the history
Update tutorial
  • Loading branch information
gviejo authored Nov 17, 2023
2 parents dc5a396 + fd6fcfb commit f0cebd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/examples/tutorial_calcium_imaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
# ---------------------
# Here we compute the tuning curves of all the neurons

tcurves = nap.compute_1d_tuning_curves_continous(transients, angle, nb_bins = 120)
tcurves = nap.compute_1d_tuning_curves_continuous(transients, angle, nb_bins = 120)

print(tcurves)

Expand Down Expand Up @@ -123,8 +123,8 @@
# %%
# Now we can compute the tuning curves for each half of the recording and plot the tuning curves for the fifth region of interest.

half1 = nap.compute_1d_tuning_curves_continous(transients, angle, nb_bins = 120, ep = halves.loc[[0]])
half2 = nap.compute_1d_tuning_curves_continous(transients, angle, nb_bins = 120, ep = halves.loc[[1]])
half1 = nap.compute_1d_tuning_curves_continuous(transients, angle, nb_bins = 120, ep = halves.loc[[0]])
half2 = nap.compute_1d_tuning_curves_continuous(transients, angle, nb_bins = 120, ep = halves.loc[[1]])

plt.figure(figsize=(12, 5))
plt.subplot(1,2,1)
Expand Down
3 changes: 2 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ Community
To ask any questions or get support for using pynapple, please consider joining our slack. Please send an email to thepynapple[at]gmail[dot]com to receive an invitation link.

New release :fire:
-----------------
------------------

Starting with 0.4, pynapple rely on the [numpy array container](https://numpy.org/doc/stable/user/basics.dispatch.html) approach instead of Pandas. Pynapple builtin functions will remain the same except for functions inherited from Pandas. Typically this line of code in `pynapple<=0.3.6` :
```python
meantsd = tsdframe.mean(1)
Expand Down

0 comments on commit f0cebd8

Please sign in to comment.