Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrofelder committed Oct 26, 2023
1 parent 598ba9a commit ee9b1fa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
6 changes: 3 additions & 3 deletions examples/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
cell_density,
custom_camera,
gene_expression,
#neurons,
#ruler,
# neurons,
# ruler,
settings,
slice,
#streamlines,
# streamlines,
user_volumetric_data,
video,
volumetric_data,
Expand Down
8 changes: 5 additions & 3 deletions examples/user_volumetric_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
retrieved_paths = pooch.retrieve(
url="https://api.mapzebrain.org/media/Lines/brn3cGFP/average_data/T_AVG_s356tTg.zip",
known_hash="54b59146ba08b4d7eea64456bcd67741db4b5395235290044545263f61453a61",
path=Path.home() / ".brainglobe" / "brainrender-example-data", # zip will be downloaded here
path=Path.home()
/ ".brainglobe"
/ "brainrender-example-data", # zip will be downloaded here
progressbar=True,
processor=pooch.Unzip(
extract_dir=""
Expand All @@ -48,7 +50,7 @@
),
)

datafile = Path(retrieved_paths[1]) # [0] is zip file
datafile = Path(retrieved_paths[1]) # [0] is zip file

if not datafile.exists():
raise ValueError(
Expand Down Expand Up @@ -80,7 +82,7 @@
mesh = vol.isosurface(value=20).c(blue_grey).decimate().clean()
SHIFT = [-20, 15, 30] # fine tune mesh position
current_position = mesh.pos()
new_position = [SHIFT[i]+current_position[i] for i in range(3)]
new_position = [SHIFT[i] + current_position[i] for i in range(3)]
mesh.pos(*new_position)

# 5. render
Expand Down
6 changes: 3 additions & 3 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ def test_examples():
examples.cell_density
examples.custom_camera
examples.gene_expression
#examples.neurons
#examples.ruler
# examples.neurons
# examples.ruler
examples.settings
examples.slice
#examples.streamlines
# examples.streamlines
examples.user_volumetric_data
examples.video
examples.volumetric_data

0 comments on commit ee9b1fa

Please sign in to comment.