Skip to content

Commit 3609e5b

Browse files
committed
re-format the repository
1 parent b3321b8 commit 3609e5b

9 files changed

Lines changed: 11 additions & 14 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ Steffen Schneider, Rodrigo González Laiz, Anastasiia Filipova, Markus Frey, Mac
5050
[Learnable latent embeddings for joint behavioral and neural analysis.](https://arxiv.org/abs/2204.00673)
5151
Steffen Schneider*, Jin Hwa Lee* and Mackenzie Weygandt Mathis
5252

53-
# Patent Information
53+
# Patent Information
5454

55-
- [Dimensionality reduction of time-series data, and systems and devices that use the resultant embeddings](https://patents.google.com/patent/US12499131B2/en). Steffen Schneider* & Mackenzie Weygandt Mathis*. Awarded Dec 2025. Please contact the [TTO office](adam.swetloff@epfl.ch) at EPFL for licensing.
55+
- [Dimensionality reduction of time-series data, and systems and devices that use the resultant embeddings](https://patents.google.com/patent/US12499131B2/en). Steffen Schneider* & Mackenzie Weygandt Mathis*. Awarded Dec 2025. Please contact the [TTO office](adam.swetloff@epfl.ch) at EPFL for licensing.
5656

5757
# License
5858

cebra/helper.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,7 @@ def wrapper(*args, patched_version=None, **kwargs):
169169
installed_version = packaging.version.parse(
170170
patched_version) # Use the patched version if provided
171171
else:
172-
installed_version = packaging.version.parse(
173-
module.__version__)
172+
installed_version = packaging.version.parse(module.__version__)
174173

175174
if installed_version < required_version:
176175
raise ImportError(

cebra/integrations/plotly.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ def _define_colorscale(self, cmap: str):
8787
Returns:
8888
colorscale: List of scaled colors to plot the embeddings
8989
"""
90-
colorscale = _convert_cmap2colorscale(matplotlib.colormaps.get_cmap(cmap))
90+
colorscale = _convert_cmap2colorscale(
91+
matplotlib.colormaps.get_cmap(cmap))
9192

9293
return colorscale
9394

docs/source/api/integrations/data.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ Data Loading
33

44
.. automodule:: cebra.data.load
55
:show-inheritance:
6-
:members:
6+
:members:

docs/source/api/integrations/deeplabcut.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,3 @@ DeepLabCut
44
.. automodule:: cebra.integrations.deeplabcut
55
:show-inheritance:
66
:members:
7-
8-

docs/source/api/integrations/matplotlib.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ Plotting with ``matplotlib``
44
.. automodule:: cebra.integrations.matplotlib
55
:show-inheritance:
66
:members:
7-

docs/source/api/integrations/plotly.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ Plotting with ``plotly``
44
.. automodule:: cebra.integrations.plotly
55
:show-inheritance:
66
:members:
7-

tests/test_datasets.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,8 @@ def test_allen():
148148

149149

150150
@pytest.mark.requires_dataset
151-
@pytest.mark.parametrize("options",
152-
cebra.datasets.get_options("*",
153-
expand_parametrized=False))
151+
@pytest.mark.parametrize(
152+
"options", cebra.datasets.get_options("*", expand_parametrized=False))
154153
def test_options(options):
155154
assert len(options) > 0
156155
assert len(multisubject_options) > 0

tests/test_solver.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ def _get_loader(data_name, loader_initfunc):
4141
loader = loader_initfunc(data, **kwargs)
4242
return loader, data
4343

44+
4445
OUTPUT_DIMENSION = 3
4546

47+
4648
def _make_model(dataset, model_architecture="offset10-model"):
4749
# TODO flexible input dimension
4850
# return nn.Sequential(
@@ -398,4 +400,4 @@ def test_unified_session(data_name, model_architecture, loader_initfunc,
398400
assert emb.shape == (loader.dataset.num_timepoints, 3)
399401

400402
emb = solver.transform(data, labels, session_id=i, batch_size=300)
401-
assert emb.shape == (loader.dataset.num_timepoints, 3)
403+
assert emb.shape == (loader.dataset.num_timepoints, 3)

0 commit comments

Comments
 (0)