Skip to content

Commit

Permalink
Codestyle fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carifio24 committed Jan 11, 2025
1 parent 40893ac commit 05dde85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions glue_ar/common/scatter_gltf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from glue.utils.array import ensure_numerical
from glue_vispy_viewers.common.viewer_state import Vispy3DViewerState
from glue_vispy_viewers.scatter.layer_state import ScatterLayerState
from numpy import isfinite, ndarray
from numpy import ndarray
from numpy.linalg import norm

from typing import List, Literal, Optional, Tuple
Expand All @@ -15,7 +15,7 @@
normalize, rectangular_prism_triangulation, sphere_triangles
from glue_ar.gltf_utils import SHORT_MAX, add_points_to_bytearray, add_triangles_to_bytearray, \
index_mins, index_maxes
from glue_ar.utils import Viewer3DState, get_stretches, iterable_has_nan, hex_to_components, \
from glue_ar.utils import Viewer3DState, iterable_has_nan, hex_to_components, \
layer_color, offset_triangles, unique_id, xyz_bounds, xyz_for_layer, Bounds
from glue_ar.common.gltf_builder import GLTFBuilder
from glue_ar.common.scatter import Scatter3DLayerState, ScatterLayerState3D, \
Expand Down
2 changes: 1 addition & 1 deletion glue_ar/common/scatter_stl.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def add_scatter_layer_stl(builder: STLBuilder,
preserve_aspect=viewer_state.native_aspect,
mask=mask,
scaled=True)

if len(data) == 0:
return

Check warning on line 46 in glue_ar/common/scatter_stl.py

View check run for this annotation

Codecov / codecov/patch

glue_ar/common/scatter_stl.py#L46

Added line #L46 was not covered by tests

Expand Down

0 comments on commit 05dde85

Please sign in to comment.