From ee9b1fa95bb387b1a123b35431890d3fda7fcb22 Mon Sep 17 00:00:00 2001 From: alessandrofelder Date: Thu, 26 Oct 2023 11:00:34 +0100 Subject: [PATCH] fix linting --- examples/__init__.py | 6 +++--- examples/user_volumetric_data.py | 8 +++++--- tests/test_examples.py | 6 +++--- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/examples/__init__.py b/examples/__init__.py index d60d19ed..1461913e 100644 --- a/examples/__init__.py +++ b/examples/__init__.py @@ -9,11 +9,11 @@ cell_density, custom_camera, gene_expression, - #neurons, - #ruler, + # neurons, + # ruler, settings, slice, - #streamlines, + # streamlines, user_volumetric_data, video, volumetric_data, diff --git a/examples/user_volumetric_data.py b/examples/user_volumetric_data.py index 3801329e..3dd1c32c 100644 --- a/examples/user_volumetric_data.py +++ b/examples/user_volumetric_data.py @@ -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="" @@ -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( @@ -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 diff --git a/tests/test_examples.py b/tests/test_examples.py index 5db2348e..9110c554 100644 --- a/tests/test_examples.py +++ b/tests/test_examples.py @@ -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