Skip to content

Commit e232d65

Browse files
committed
FIX: comments
1 parent 0a01e6f commit e232d65

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

scilpy/tractograms/tests/test_dps_and_dpp_management.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,7 @@ def test_add_data_as_dpp_1_per_point():
7676
fake_sft = _get_small_sft()
7777
cmap = get_lookup_table('jet')
7878

79-
# Not testing the clipping options. Will be tested through viz.utils tests
80-
81-
# Test 1: One value per point.
82-
# Lowest cmap color should be first point of second streamline.
79+
# Test: One value per point.
8380
values = np.asarray([2, 20, 200, 0.1, 0.3, 22, 5])
8481
color = (np.asarray(cmap(values)[:, 0:3]) * 255).astype(np.uint8)
8582

@@ -95,8 +92,7 @@ def test_add_data_as_dpp_1_per_streamline():
9592
fake_sft = _get_small_sft()
9693
cmap = get_lookup_table('jet')
9794

98-
# Test 2: One value per streamline
99-
# Lowest cmap color should be every point in first streamline
95+
# Test: One value per streamline
10096
values = np.asarray([4, 5])
10197
color = (np.asarray(cmap(values)[:, 0:3]) * 255).astype(np.uint8)
10298
array_seq = get_data_as_arraysequence(color, fake_sft)

scilpy/viz/color.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def prepare_colorbar_figure(cmap, lbound, ubound, nb_values=255, nb_ticks=10,
286286
def ambient_occlusion(sft, colors, factor=4):
287287
"""
288288
Apply ambiant occlusion to a set of colors based on point density
289-
around each points.
289+
around each point.
290290
291291
Parameters
292292
----------

0 commit comments

Comments
 (0)