Skip to content

Commit

Permalink
We can't unpack in an index expression for Python < 3.11.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carifio24 committed Aug 10, 2024
1 parent 8cf7565 commit 6e002ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glue_ar/common/voxels.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def add_voxel_layers_gltf(builder: GLTFBuilder,
color_components = hex_to_components(color)

for indices in nonempty_indices:
value = data[*indices]
value = data[tuple(indices)]

Check warning on line 96 in glue_ar/common/voxels.py

View check run for this annotation

Codecov / codecov/patch

glue_ar/common/voxels.py#L96

Added line #L96 was not covered by tests
adjusted_opacity = min(max(layer_state.alpha * opacity_factor * (value - isomin) / isorange, 0), 1)
indices_tpl = tuple(indices)
if indices_tpl in occupied_voxels:
Expand Down

0 comments on commit 6e002ac

Please sign in to comment.