Skip to content

Commit

Permalink
fixing black linting
Browse files Browse the repository at this point in the history
  • Loading branch information
gviejo committed Feb 23, 2024
1 parent dfbc57e commit 5115264
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ In 2021, Guillaume and other trainees in Adrien's lab decided to fork from neuro

- Refactoring `IntervalSet` to pure numpy ndarray.
- Implementing new chain of inheritance for time series with abstract base class. `base_class.Base` holds the temporal methods for all time series and `Ts`. `time_series.BaseTsd` inherit `Base` and implements the common methods for `Tsd`, `TsdFrame` and `Tsd`.
- Automatic conversion to numpy ndarray for all objects that are numpy-like (typically jax).


0.5.1 (2024-01-29)
Expand Down
6 changes: 3 additions & 3 deletions pynapple/core/_jitted_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -886,9 +886,9 @@ def jitcontinuous_perievent(
left = np.minimum(windowsize[0], t_pos - start_t[k, 0])
right = np.minimum(windowsize[1], maxt - t_pos - 1)
center = windowsize[0] + 1
new_data_array[
center - left - 1 : center + right, cnt_i
] = data_array[t_pos - left : t_pos + right + 1]
new_data_array[center - left - 1 : center + right, cnt_i] = (
data_array[t_pos - left : t_pos + right + 1]
)

t -= 1
i += 1
Expand Down
1 change: 1 addition & 0 deletions pynapple/core/time_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
Most of the same functions are available through all classes. Objects behaves like numpy.ndarray. Slicing can be done the same way for example
`tsd[0:10]` returns the first 10 rows. Similarly, you can call any numpy functions like `np.mean(tsd, 1)`.
"""

import abc
import importlib
import os
Expand Down
1 change: 0 additions & 1 deletion pynapple/core/ts_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"""


import os
import warnings
from collections import UserDict
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ repository = "https://github.com/pynapple-org/pynapple"
##########################################################################
[project.optional-dependencies]
dev = [
"black>=24.1.0", # Code formatter
"black>=24.2.0", # Code formatter
"isort", # Import sorter
"pip-tools", # Dependency management
"pytest", # Testing framework
Expand Down

0 comments on commit 5115264

Please sign in to comment.