Skip to content

Commit 2496ab0

Browse files
[pre-commit.ci] pre-commit autoupdate (#406)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.4](astral-sh/ruff-pre-commit@v0.8.6...v0.9.4) - [github.com/psf/black: 24.10.0 → 25.1.0](psf/black@24.10.0...25.1.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent b7eeb1a commit 2496ab0

File tree

7 files changed

+31
-31
lines changed

7 files changed

+31
-31
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ repos:
1616
- id: requirements-txt-fixer
1717
- id: trailing-whitespace
1818
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: v0.8.6
19+
rev: v0.9.4
2020
hooks:
2121
- id: ruff
2222
- repo: https://github.com/psf/black
23-
rev: 24.10.0
23+
rev: 25.1.0
2424
hooks:
2525
- id: black

examples/add_cylinder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
2-
This example shows how to add a cylinder actor to a scene (e.g.
3-
to represent the location of an implanted optic canula)
2+
This example shows how to add a cylinder actor to a scene (e.g.
3+
to represent the location of an implanted optic canula)
44
"""
55

66
from brainrender import Scene, settings

examples/add_labels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
This example shows how to add a label to a renderend actor
2+
This example shows how to add a label to a renderend actor
33
"""
44

55
from pathlib import Path

examples/cell_density.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
2-
This example shows how to use a PointsDensity
3-
actor to show the density of labelled cells
2+
This example shows how to use a PointsDensity
3+
actor to show the density of labelled cells
44
"""
55

66
import random

examples/custom_camera.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
"""
2-
This example shows how to create a scene and render it with a custom camera.
3-
This is done by specifying a dictionary of camera parameters, to get the
4-
parameters you need for your camera:
5-
- render an interactive scene with any camera
6-
- move the camera to where you need it to be
7-
- press 'c'
8-
- this will print the current camera parameters to your console. Copy paste the
9-
parameters in your script
2+
This example shows how to create a scene and render it with a custom camera.
3+
This is done by specifying a dictionary of camera parameters, to get the
4+
parameters you need for your camera:
5+
- render an interactive scene with any camera
6+
- move the camera to where you need it to be
7+
- press 'c'
8+
- this will print the current camera parameters to your console. Copy paste the
9+
parameters in your script
1010
"""
1111

1212
from pathlib import Path

examples/user_volumetric_data.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
"""
22
3-
This example shows how to render VOLUMETRIC data in brainrender.
4-
It uses data downloaded from: https://fishatlas.neuro.mpg.de/lines/
5-
showing gene expression for this transgenic line (brn3c:GPF): https://zfin.org/ZDB-ALT-050728-2
6-
7-
These data are a 3D image with orientation different from the axes system used by
8-
brainrender, so it has to be loaded and transposed to the correct orientation
9-
10-
This examples shows how to:
11-
- load volumetric data from a TIFF file
12-
- transpose the data with BrainGlobe Space to re-orient it
13-
- extract a mesh from the volumetric data using vedo
14-
- render the data
3+
This example shows how to render VOLUMETRIC data in brainrender.
4+
It uses data downloaded from: https://fishatlas.neuro.mpg.de/lines/
5+
showing gene expression for this transgenic line (brn3c:GPF): https://zfin.org/ZDB-ALT-050728-2
6+
7+
These data are a 3D image with orientation different from the axes system used by
8+
brainrender, so it has to be loaded and transposed to the correct orientation
9+
10+
This examples shows how to:
11+
- load volumetric data from a TIFF file
12+
- transpose the data with BrainGlobe Space to re-orient it
13+
- extract a mesh from the volumetric data using vedo
14+
- render the data
1515
1616
"""
1717

examples/volumetric_data.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""
2-
This example shows how to render volumetric (i.e. organized in voxel)
3-
data in brainrender. The data used are is the localized expression of
4-
'Gpr161' from the Allen Atlas database, downloaded with brainrender
5-
and saved to a numpy file
2+
This example shows how to render volumetric (i.e. organized in voxel)
3+
data in brainrender. The data used are is the localized expression of
4+
'Gpr161' from the Allen Atlas database, downloaded with brainrender
5+
and saved to a numpy file
66
"""
77

88
import numpy as np

0 commit comments

Comments
 (0)