brainrender 2.1.17__tar.gz → 2.1.19__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. {brainrender-2.1.17 → brainrender-2.1.19}/PKG-INFO +7 -3
  2. {brainrender-2.1.17 → brainrender-2.1.19}/README.md +3 -0
  3. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/__init__.py +2 -6
  4. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/actor.py +1 -1
  5. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/atlas.py +1 -1
  6. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/settings.py +1 -0
  7. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender.egg-info/PKG-INFO +7 -3
  8. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender.egg-info/requires.txt +1 -1
  9. {brainrender-2.1.17 → brainrender-2.1.19}/pyproject.toml +1 -1
  10. {brainrender-2.1.17 → brainrender-2.1.19}/.github/workflows/test_and_deploy.yml +0 -0
  11. {brainrender-2.1.17 → brainrender-2.1.19}/.gitignore +0 -0
  12. {brainrender-2.1.17 → brainrender-2.1.19}/CITATION.cff +0 -0
  13. {brainrender-2.1.17 → brainrender-2.1.19}/LICENSE +0 -0
  14. {brainrender-2.1.17 → brainrender-2.1.19}/MANIFEST.in +0 -0
  15. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/_colors.py +0 -0
  16. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/_io.py +0 -0
  17. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/_jupyter.py +0 -0
  18. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/_utils.py +0 -0
  19. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/_video.py +0 -0
  20. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/actors/__init__.py +0 -0
  21. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/actors/cylinder.py +0 -0
  22. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/actors/line.py +0 -0
  23. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/actors/neurons.py +0 -0
  24. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/actors/points.py +0 -0
  25. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/actors/ruler.py +0 -0
  26. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/actors/streamlines.py +0 -0
  27. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/actors/volume.py +0 -0
  28. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/atlas_specific/__init__.py +0 -0
  29. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/atlas_specific/allen_brain_atlas/gene_expression/__init__.py +0 -0
  30. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/atlas_specific/allen_brain_atlas/gene_expression/api.py +0 -0
  31. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/atlas_specific/allen_brain_atlas/gene_expression/ge_utils.py +0 -0
  32. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/atlas_specific/allen_brain_atlas/streamlines.py +0 -0
  33. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/camera.py +0 -0
  34. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/cameras.py +0 -0
  35. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/render.py +0 -0
  36. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/scene.py +0 -0
  37. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender/video.py +0 -0
  38. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender.egg-info/SOURCES.txt +0 -0
  39. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender.egg-info/dependency_links.txt +0 -0
  40. {brainrender-2.1.17 → brainrender-2.1.19}/brainrender.egg-info/top_level.txt +0 -0
  41. {brainrender-2.1.17 → brainrender-2.1.19}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: brainrender
3
- Version: 2.1.17
3
+ Version: 2.1.19
4
4
  Summary: Visualisation and exploration of brain atlases and other anatomical data
5
5
  Author-email: "Federico Claudi, Adam Tyson, Luigi Petrucco" <hello@brainglobe.info>
6
6
  License: BSD-3-Clause
@@ -25,7 +25,7 @@ License-File: LICENSE
25
25
  Requires-Dist: brainglobe-atlasapi>=2.0.1
26
26
  Requires-Dist: brainglobe-space>=1.0.0
27
27
  Requires-Dist: brainglobe-utils>=0.5.0
28
- Requires-Dist: h5py
28
+ Requires-Dist: h5py<3.16.0
29
29
  Requires-Dist: k3d
30
30
  Requires-Dist: loguru
31
31
  Requires-Dist: morphapi>=0.2.1
@@ -53,6 +53,7 @@ Requires-Dist: setuptools_scm; extra == "dev"
53
53
  Provides-Extra: nb
54
54
  Requires-Dist: jupyter; extra == "nb"
55
55
  Requires-Dist: k3d; extra == "nb"
56
+ Dynamic: license-file
56
57
 
57
58
  # brainrender
58
59
 
@@ -63,6 +64,9 @@ Requires-Dist: k3d; extra == "nb"
63
64
  [![tests](https://github.com/brainglobe/brainrender/workflows/tests/badge.svg)](https://github.com/brainglobe/brainrender/actions)
64
65
  [![codecov](https://codecov.io/gh/brainglobe/brainrender/graph/badge.svg)](https://codecov.io/gh/brainglobe/brainrender)
65
66
  [![Downloads](https://static.pepy.tech/badge/brainrender)](https://pepy.tech/project/brainrender)
67
+ [![image.sc forum](https://img.shields.io/badge/dynamic/json.svg?label=forum&url=https%3A%2F%2Fforum.image.sc%2Ftags%2Fbrainglobe.json&query=%24.topic_list.tags.0.topic_count&colorB=brightgreen&suffix=%20topics&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAABPklEQVR42m3SyyqFURTA8Y2BER0TDyExZ+aSPIKUlPIITFzKeQWXwhBlQrmFgUzMMFLKZeguBu5y+//17dP3nc5vuPdee6299gohUYYaDGOyyACq4JmQVoFujOMR77hNfOAGM+hBOQqB9TjHD36xhAa04RCuuXeKOvwHVWIKL9jCK2bRiV284QgL8MwEjAneeo9VNOEaBhzALGtoRy02cIcWhE34jj5YxgW+E5Z4iTPkMYpPLCNY3hdOYEfNbKYdmNngZ1jyEzw7h7AIb3fRTQ95OAZ6yQpGYHMMtOTgouktYwxuXsHgWLLl+4x++Kx1FJrjLTagA77bTPvYgw1rRqY56e+w7GNYsqX6JfPwi7aR+Y5SA+BXtKIRfkfJAYgj14tpOF6+I46c4/cAM3UhM3JxyKsxiOIhH0IO6SH/A1Kb1WBeUjbkAAAAAElFTkSuQmCC)](https://forum.image.sc/tag/brainglobe)
68
+ [![Bluesky](https://img.shields.io/badge/Bluesky-0285FF?logo=bluesky&logoColor=fff)](https://bsky.app/profile/brainglobe.info)
69
+ [![Mastodon](https://img.shields.io/badge/Mastodon-6364FF?logo=mastodon&logoColor=fff)](https://mastodon.online/@brainglobe)
66
70
 
67
71
  &nbsp;
68
72
  &nbsp;
@@ -7,6 +7,9 @@
7
7
  [![tests](https://github.com/brainglobe/brainrender/workflows/tests/badge.svg)](https://github.com/brainglobe/brainrender/actions)
8
8
  [![codecov](https://codecov.io/gh/brainglobe/brainrender/graph/badge.svg)](https://codecov.io/gh/brainglobe/brainrender)
9
9
  [![Downloads](https://static.pepy.tech/badge/brainrender)](https://pepy.tech/project/brainrender)
10
+ [![image.sc forum](https://img.shields.io/badge/dynamic/json.svg?label=forum&url=https%3A%2F%2Fforum.image.sc%2Ftags%2Fbrainglobe.json&query=%24.topic_list.tags.0.topic_count&colorB=brightgreen&suffix=%20topics&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAABPklEQVR42m3SyyqFURTA8Y2BER0TDyExZ+aSPIKUlPIITFzKeQWXwhBlQrmFgUzMMFLKZeguBu5y+//17dP3nc5vuPdee6299gohUYYaDGOyyACq4JmQVoFujOMR77hNfOAGM+hBOQqB9TjHD36xhAa04RCuuXeKOvwHVWIKL9jCK2bRiV284QgL8MwEjAneeo9VNOEaBhzALGtoRy02cIcWhE34jj5YxgW+E5Z4iTPkMYpPLCNY3hdOYEfNbKYdmNngZ1jyEzw7h7AIb3fRTQ95OAZ6yQpGYHMMtOTgouktYwxuXsHgWLLl+4x++Kx1FJrjLTagA77bTPvYgw1rRqY56e+w7GNYsqX6JfPwi7aR+Y5SA+BXtKIRfkfJAYgj14tpOF6+I46c4/cAM3UhM3JxyKsxiOIhH0IO6SH/A1Kb1WBeUjbkAAAAAElFTkSuQmCC)](https://forum.image.sc/tag/brainglobe)
11
+ [![Bluesky](https://img.shields.io/badge/Bluesky-0285FF?logo=bluesky&logoColor=fff)](https://bsky.app/profile/brainglobe.info)
12
+ [![Mastodon](https://img.shields.io/badge/Mastodon-6364FF?logo=mastodon&logoColor=fff)](https://mastodon.online/@brainglobe)
10
13
 
11
14
  &nbsp;
12
15
  &nbsp;
@@ -1,4 +1,3 @@
1
- import os
2
1
  from loguru import logger
3
2
  from pathlib import Path
4
3
  from rich.logging import RichHandler
@@ -17,7 +16,6 @@ import brainrender.actors
17
16
  from brainrender.video import VideoMaker, Animation
18
17
  from brainrender.atlas import Atlas
19
18
 
20
-
21
19
  try:
22
20
  __version__ = version("brainrender")
23
21
  except PackageNotFoundError:
@@ -37,10 +35,8 @@ def set_logging(level="INFO", path=None):
37
35
  """
38
36
  logger.remove()
39
37
 
40
- path = path or str(base_dir / "log.log")
41
- if Path(path).exists():
42
- Path(path).unlink()
43
- logger.add(path, level="DEBUG")
38
+ path = path or str(base_dir / "brainrender_{time}.log")
39
+ logger.add(path, retention=settings.NUM_LOGS_KEPT, level="DEBUG")
44
40
 
45
41
  if level == "DEBUG":
46
42
  logger.configure(
@@ -97,7 +97,7 @@ class Actor:
97
97
  alpha=None,
98
98
  ):
99
99
  """
100
- Actor class representing anythng shown in a brainrender scene.
100
+ Actor class representing anything shown in a brainrender scene.
101
101
  Methods in brainrender.actors are used to creates actors specific
102
102
  for different data types.
103
103
 
@@ -145,7 +145,7 @@ class Atlas(BrainGlobeAtlas):
145
145
  [bounds[4], bounds[5]],
146
146
  ]
147
147
 
148
- wh = [float(np.diff(root_bounds[i])) for i in idx_pair]
148
+ wh = [float(np.diff(root_bounds[i])[0]) for i in idx_pair]
149
149
  if sx is None:
150
150
  sx = wh[0]
151
151
  if sy is None:
@@ -36,3 +36,4 @@ SHADER_STYLE = "cartoon" # affects the look of rendered brain regions: [metalli
36
36
  SHOW_AXES = True
37
37
  WHOLE_SCREEN = False # If true render window is full screen
38
38
  OFFSCREEN = False
39
+ NUM_LOGS_KEPT = 100
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: brainrender
3
- Version: 2.1.17
3
+ Version: 2.1.19
4
4
  Summary: Visualisation and exploration of brain atlases and other anatomical data
5
5
  Author-email: "Federico Claudi, Adam Tyson, Luigi Petrucco" <hello@brainglobe.info>
6
6
  License: BSD-3-Clause
@@ -25,7 +25,7 @@ License-File: LICENSE
25
25
  Requires-Dist: brainglobe-atlasapi>=2.0.1
26
26
  Requires-Dist: brainglobe-space>=1.0.0
27
27
  Requires-Dist: brainglobe-utils>=0.5.0
28
- Requires-Dist: h5py
28
+ Requires-Dist: h5py<3.16.0
29
29
  Requires-Dist: k3d
30
30
  Requires-Dist: loguru
31
31
  Requires-Dist: morphapi>=0.2.1
@@ -53,6 +53,7 @@ Requires-Dist: setuptools_scm; extra == "dev"
53
53
  Provides-Extra: nb
54
54
  Requires-Dist: jupyter; extra == "nb"
55
55
  Requires-Dist: k3d; extra == "nb"
56
+ Dynamic: license-file
56
57
 
57
58
  # brainrender
58
59
 
@@ -63,6 +64,9 @@ Requires-Dist: k3d; extra == "nb"
63
64
  [![tests](https://github.com/brainglobe/brainrender/workflows/tests/badge.svg)](https://github.com/brainglobe/brainrender/actions)
64
65
  [![codecov](https://codecov.io/gh/brainglobe/brainrender/graph/badge.svg)](https://codecov.io/gh/brainglobe/brainrender)
65
66
  [![Downloads](https://static.pepy.tech/badge/brainrender)](https://pepy.tech/project/brainrender)
67
+ [![image.sc forum](https://img.shields.io/badge/dynamic/json.svg?label=forum&url=https%3A%2F%2Fforum.image.sc%2Ftags%2Fbrainglobe.json&query=%24.topic_list.tags.0.topic_count&colorB=brightgreen&suffix=%20topics&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAABPklEQVR42m3SyyqFURTA8Y2BER0TDyExZ+aSPIKUlPIITFzKeQWXwhBlQrmFgUzMMFLKZeguBu5y+//17dP3nc5vuPdee6299gohUYYaDGOyyACq4JmQVoFujOMR77hNfOAGM+hBOQqB9TjHD36xhAa04RCuuXeKOvwHVWIKL9jCK2bRiV284QgL8MwEjAneeo9VNOEaBhzALGtoRy02cIcWhE34jj5YxgW+E5Z4iTPkMYpPLCNY3hdOYEfNbKYdmNngZ1jyEzw7h7AIb3fRTQ95OAZ6yQpGYHMMtOTgouktYwxuXsHgWLLl+4x++Kx1FJrjLTagA77bTPvYgw1rRqY56e+w7GNYsqX6JfPwi7aR+Y5SA+BXtKIRfkfJAYgj14tpOF6+I46c4/cAM3UhM3JxyKsxiOIhH0IO6SH/A1Kb1WBeUjbkAAAAAElFTkSuQmCC)](https://forum.image.sc/tag/brainglobe)
68
+ [![Bluesky](https://img.shields.io/badge/Bluesky-0285FF?logo=bluesky&logoColor=fff)](https://bsky.app/profile/brainglobe.info)
69
+ [![Mastodon](https://img.shields.io/badge/Mastodon-6364FF?logo=mastodon&logoColor=fff)](https://mastodon.online/@brainglobe)
66
70
 
67
71
  &nbsp;
68
72
  &nbsp;
@@ -1,7 +1,7 @@
1
1
  brainglobe-atlasapi>=2.0.1
2
2
  brainglobe-space>=1.0.0
3
3
  brainglobe-utils>=0.5.0
4
- h5py
4
+ h5py<3.16.0
5
5
  k3d
6
6
  loguru
7
7
  morphapi>=0.2.1
@@ -12,7 +12,7 @@ dependencies = [
12
12
  "brainglobe-atlasapi>=2.0.1",
13
13
  "brainglobe-space>=1.0.0",
14
14
  "brainglobe-utils>=0.5.0",
15
- "h5py",
15
+ "h5py<3.16.0",
16
16
  "k3d",
17
17
  "loguru",
18
18
  "morphapi>=0.2.1",
File without changes
File without changes
File without changes
File without changes
File without changes