Skip to content

Commit

Permalink
Bumping 0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gviejo committed Oct 30, 2023
1 parent e9d9d54 commit c2976b5
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 6 deletions.
13 changes: 13 additions & 0 deletions docs/HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@ Around 2016-2017, Luke Sjulson started *TSToolbox2*, still in Matlab and which i
In 2018, Francesco started neuroseries, a Python package built on Pandas. It was quickly adopted in Adrien's lab, especially by Guillaume Viejo, a postdoc in the lab. Gradually, the majority of the lab was using it and new functions were constantly added.
In 2021, Guillaume and other trainees in Adrien's lab decided to fork from neuroseries and started *pynapple*. The core of pynapple is largely built upon neuroseries. Some of the original changes to TSToolbox made by Luke were included in this package, especially the *time_support* property of all ts/tsd objects.

0.4.1 (2023-10-30)
------------------

- Implementing `get` method that return both an interval or the closest timepoint


0.4.0 (2023-10-11)
------------------

- Implementing the numpy array container approach within pynapple
- TsdTensor for objects larger than 2 dimensions is now available


0.3.6 (2023-09-11)
------------------

Expand Down
2 changes: 1 addition & 1 deletion pynapple/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.4.0"
__version__ = "0.4.1"
from .core import *
from .io import *
from .process import *
4 changes: 2 additions & 2 deletions pynapple/core/time_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -782,13 +782,13 @@ def get(self, start, end=None, time_units="s"):
return self[idx - 1]
else:
return self[idx]
else:
else:
assert isinstance(end, Number), "end should be a float or int"
assert start < end, "Start should not precede end"
start, end = TsIndex.format_timestamps(np.array([start, end]), time_units)
idx_start = np.searchsorted(time_array, start)
idx_end = np.searchsorted(time_array, end, side="right")
return self[idx_start:idx_end]
return self[idx_start:idx_end]


class TsdTensor(NDArrayOperatorsMixin, _AbstractTsd):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "pynapple"
version = "0.4.0"
version = "0.4.1"
description = "PYthon Neural Analysis Package Pour Laboratoires d’Excellence"
readme = "README.md"
authors = [{ name = "Guillaume Viejo", email = "guillaume.viejo@gmail.com" }]
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/pynapple-org/pynapple',
version='v0.4.0',
version='v0.4.1',
zip_safe=False,
long_description_content_type='text/markdown',
download_url='https://github.com/pynapple-org/pynapple/archive/refs/tags/v0.4.0.tar.gz'
download_url='https://github.com/pynapple-org/pynapple/archive/refs/tags/v0.4.1.tar.gz'
)

0 comments on commit c2976b5

Please sign in to comment.