Skip to content

Commit

Permalink
Fix type hints (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicasyu authored Feb 15, 2023
1 parent de185b0 commit 001361e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/abm_shape_collection/make_voxels_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


@task
def make_voxels_array(voxels: list[list], scale: int = 1) -> np.ndarray:
def make_voxels_array(voxels: list[tuple[int, int, int]], scale: int = 1) -> np.ndarray:
# Center voxels around (0,0,0).
center_x, center_y, center_z = [round(x) for x in np.array(voxels).mean(axis=0)]
all_xyz_centered = [(z - center_z, y - center_y, x - center_x) for x, y, z in voxels]
Expand Down

0 comments on commit 001361e

Please sign in to comment.