Skip to content

Commit

Permalink
apply ruff formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedh committed Aug 27, 2024
1 parent 9685668 commit 6ecfac3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions trimesh/exchange/gltf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1446,9 +1446,14 @@ def _read_buffers(
assert 0 <= start <= start + length <= len(data)
access[index] = np.array(
np.lib.stride_tricks.as_strided(
np.frombuffer(data, dtype=np.uint8, offset=start, count=length),
[count, per_row], [stride, 1]
).view(dtype).reshape(shape)
np.frombuffer(
data, dtype=np.uint8, offset=start, count=length
),
[count, per_row],
[stride, 1],
)
.view(dtype)
.reshape(shape)
)
else:
# length is the number of bytes per item times total
Expand Down

0 comments on commit 6ecfac3

Please sign in to comment.