Skip to content

Commit f7805f6

Browse files
committed
reduce dependencies
1 parent 31b5edc commit f7805f6

6 files changed

Lines changed: 5695 additions & 4722 deletions

File tree

packages/cheese3d-annotator/README.md

Whitespace-only changes.

packages/cheese3d-annotator/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ authors = [
77
{ name = "Kyle Daruwalla", email = "daruwal@cshl.edu"},
88
{ name = "Rubin Zhao", email = "rzhao@cshl.edu"}
99
]
10-
readme = "README.md"
11-
requires-python = "==3.10.*"
10+
readme = "../../README.md"
11+
requires-python = ">=3.10"
1212
dependencies = [
1313
"tables>=3.7.0",
1414
"pandas>=2.1.4",

packages/cheese3d/cheese3d/utils.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -204,20 +204,6 @@ def read_3d_data(data_dir: str | Path, extra_cols = None):
204204
else:
205205
return landmarks
206206

207-
def tiny_cmap(center, delta, n):
208-
import seaborn as sns
209-
import matplotlib as mpl
210-
211-
if isinstance(center, str):
212-
_cmap = sns.color_palette(center, as_cmap=True)
213-
elif isinstance(center, (list, tuple)):
214-
_cmap = sns.dark_palette(tuple(center), input="rgb", as_cmap=True)
215-
216-
if isinstance(_cmap, list):
217-
_cmap = mpl.colors.LinearSegmentedColormap.from_list("tiny_cmap", _cmap)
218-
219-
return list(_cmap(np.linspace(center - delta, center + delta, n)))
220-
221207
def get_group_pattern(regex: str, group_name: str):
222208
"""
223209
Return the raw regex subpattern text for the named group `group_name`, if present.

packages/cheese3d/pyproject.toml

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,47 +4,45 @@ version = "0.1.0"
44
description = "Sensitive detection and analysis of whole-face movement in mice."
55
authors = [{ name = "Hou Lab CSHL", email = "the.hou.lab@gmail.com" }]
66
readme = "../../README.md"
7-
requires-python = "==3.10.*"
7+
requires-python = ">=3.10"
88
scripts = { cheese3d = "cheese3d.cli:cli" }
99
dependencies = [
1010
"pip>=25.2,<26",
11-
"ipython",
12-
"ipykernel",
13-
"jupyter",
14-
"protobuf < 3.20",
15-
"tables == 3.7.*",
16-
"pandas == 2.1.*",
17-
"configobj == 5.0.8",
11+
# "ipython",
12+
# "ipykernel",
13+
# "jupyter",
14+
# "protobuf < 3.20",
15+
"pandas >= 2.1",
16+
# "configobj == 5.0.8",
1817
"hydra-core == 1.3.*",
19-
"joblib == 1.5.*",
20-
"torch <= 1.12.0",
18+
# "joblib == 1.5.*",
2119
"aniposelib @ git+https://github.com/Hou-Lab-CSHL/aniposelib.git@62a15fef",
2220
"anipose @ git+https://github.com/Hou-Lab-CSHL/anipose.git",
2321
"opencv-python == 4.7.*",
2422
"opencv-python-headless == 4.7.*",
2523
"opencv-contrib-python == 4.7.*",
2624
"pims == 0.6.*",
27-
"seaborn",
25+
# "seaborn",
2826
"filelock >= 3.24.3",
2927
"open-ephys-python-tools == 0.1.12",
30-
"typer-slim[standard]>=0.15.3,<0.16",
28+
"typer-slim[standard] >= 0.15.3, < 0.16",
3129
"questionary",
3230
"textual == 6.8.*",
3331
"textual-fspicker == 0.6.*",
3432
"textual_serve == 1.1.*",
3533
"cheese3d_annotator == 0.1.0",
3634

3735
# Linux-specific deps
38-
"blosc2; sys_platform == 'linux'",
39-
"tensorflow == 2.10.*; sys_platform == 'linux'",
40-
"jax[cuda12_pip] >=0.4,<0.5; sys_platform == 'linux'",
41-
"deeplabcut[tf] @ git+https://github.com/Hou-Lab-CSHL/DeepLabCut.git ; sys_platform == 'linux'",
36+
# "blosc2; sys_platform == 'linux'",
37+
"tensorflow >= 2.13; sys_platform == 'linux'",
38+
"jax[cuda12]; sys_platform == 'linux'",
39+
"deeplabcut[tf] ; sys_platform == 'linux'",
4240

4341
# Apple silicon-specific deps
44-
"tensorflow-macos == 2.10.*; sys_platform == 'darwin'",
45-
"tensorflow-metal == 0.6.*; sys_platform == 'darwin'",
46-
"jax[cpu] >=0.4,<0.5; sys_platform == 'darwin'",
47-
"deeplabcut[apple_mchips] @ git+https://github.com/Hou-Lab-CSHL/DeepLabCut.git ; sys_platform == 'darwin'",
42+
"tensorflow-macos >= 2.13 ; sys_platform == 'darwin'",
43+
"tensorflow-metal ; sys_platform == 'darwin'",
44+
"jax[cpu]; sys_platform == 'darwin'",
45+
"deeplabcut[apple_mchips] ; sys_platform == 'darwin'",
4846
]
4947

5048
[build-system]

0 commit comments

Comments
 (0)