Skip to content

Commit

Permalink
fix: Fix simulations
Browse files Browse the repository at this point in the history
Fix typo in `generate_noise_filter` that would introduce errors in the
simulations.
  • Loading branch information
TomSchammo committed Nov 15, 2024
1 parent 4f2d39d commit 4e458fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/include/raytracing.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ generate_noise_filter(const cpp_utils::distribution_ranges<float> &dim,
const auto y = torch::empty({total_drops}, TensorType)
.uniform_(dim.y_range.min, dim.y_range.max);
const auto z = torch::empty({total_drops}, TensorType)
.uniform_(dim.y_range.min, dim.z_range.max);
.uniform_(dim.z_range.min, dim.z_range.max);

const auto dist =
torch::sqrt(torch::pow(x, 2) + torch::pow(y, 2) + torch::pow(z, 2));
Expand Down

0 comments on commit 4e458fa

Please sign in to comment.