Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
shi-eric committed May 30, 2024
1 parent 7071220 commit d2cf80c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions warp/native/volume_builder.cu
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,14 @@ class DeviceBuffer
mManaged = true;
}

/// @brief Retuns a raw pointer to the host/CPU buffer managed by this allocator.
/// @brief Returns a raw pointer to the host/CPU buffer managed by this allocator.
/// @warning Note that the pointer can be NULL!
void *data() const
{
return mCpuData;
}

/// @brief Retuns a raw pointer to the device/GPU buffer managed by this allocator.
/// @brief Returns a raw pointer to the device/GPU buffer managed by this allocator.
/// @warning Note that the pointer can be NULL!
void *deviceData() const
{
Expand Down
2 changes: 1 addition & 1 deletion warp/tests/test_volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ def test_volume_introspection(test, device):
voxels_unique = np.unique(voxels_actual, axis=0)
assert voxel_count == voxels_unique.shape[0]

# Get back tiles from voxels, shoud match get_tiles()
# Get back tiles from voxels, should match get_tiles()
voxel_tiles = 8 * (voxels_unique // 8)
voxel_tiles_sorted = voxel_tiles[np.lexsort(voxel_tiles.T[::-1])]
voxel_tiles_unique = np.unique(voxel_tiles_sorted, axis=0)
Expand Down
4 changes: 2 additions & 2 deletions warp/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -3275,8 +3275,8 @@ def feature_array(self, feature_index: int, dtype=None) -> array:
"""Returns one the the grid's feature data arrays as a Warp array
Args:
feature_index: index of the supplemental dat aarray in the grid
dtype: type for the returned warp array. If not provided, will be deduced from the array metdata.
feature_index: Index of the supplemental data array in the grid
dtype: Type for the returned Warp array. If not provided, will be deduced from the array metadata.
"""

info = self.get_feature_array_info(feature_index)
Expand Down

0 comments on commit d2cf80c

Please sign in to comment.