Skip to content

Commit 31460de

Browse files
authored
Release 0.4.0 (#116)
* Bump version to 0.4.0 * Seed `test_similarities` function to avoid test failure
1 parent 45e2229 commit 31460de

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ RUN make dist
4242
FROM cebra-base
4343

4444
# install the cebra wheel
45-
ENV WHEEL=cebra-0.3.1-py2.py3-none-any.whl
45+
ENV WHEEL=cebra-0.4.0-py2.py3-none-any.whl
4646
WORKDIR /build
4747
COPY --from=wheel /build/dist/${WHEEL} .
4848
RUN pip install --no-cache-dir ${WHEEL}'[dev,integrations,datasets]'

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CEBRA_VERSION := 0.3.1
1+
CEBRA_VERSION := 0.4.0
22

33
dist:
44
python3 -m pip install virtualenv

PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Maintainer: Steffen Schneider <[email protected]>
22
pkgname=python-cebra
33
_pkgname=cebra
4-
pkgver=0.3.1
4+
pkgver=0.4.0
55
pkgrel=1
66
pkgdesc="Consistent Embeddings of high-dimensional Recordings using Auxiliary variables"
77
url="https://cebra.ai"

cebra/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
import cebra.integrations.sklearn as sklearn
6868

69-
__version__ = "0.3.1"
69+
__version__ = "0.4.0"
7070
__all__ = ["CEBRA"]
7171
__allow_lazy_imports = False
7272
__lazy_imports = {}

reinstall.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pip uninstall -y cebra
1515
# Get version info after uninstalling --- this will automatically get the
1616
# most recent version based on the source code in the current directory.
1717
# $(tools/get_cebra_version.sh)
18-
VERSION=0.3.1
18+
VERSION=0.4.0
1919
echo "Upgrading to CEBRA v${VERSION}"
2020

2121
# Upgrade the build system (PEP517/518 compatible)

tests/test_criterions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,10 @@ def _reference_infonce(pos_dist, neg_dist):
259259

260260

261261
def test_similiarities():
262-
263-
ref = torch.randn(10, 3)
264-
pos = torch.randn(10, 3)
265-
neg = torch.randn(12, 3)
262+
rng = torch.Generator().manual_seed(42)
263+
ref = torch.randn(10, 3, generator = rng)
264+
pos = torch.randn(10, 3, generator = rng)
265+
neg = torch.randn(12, 3, generator = rng)
266266

267267
pos_dist, neg_dist = _reference_dot_similarity(ref, pos, neg)
268268
pos_dist_2, neg_dist_2 = cebra_criterions.dot_similarity(ref, pos, neg)

0 commit comments

Comments
 (0)