From 8bdce513c4d2cff5ba00a92f9612a5a8600f1477 Mon Sep 17 00:00:00 2001 From: LyceanEM Date: Wed, 4 Oct 2023 17:10:53 +0100 Subject: [PATCH] Corrected Origin bug in rayfunctions --- lyceanem/raycasting/rayfunctions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lyceanem/raycasting/rayfunctions.py b/lyceanem/raycasting/rayfunctions.py index f8bafca..45c5742 100644 --- a/lyceanem/raycasting/rayfunctions.py +++ b/lyceanem/raycasting/rayfunctions.py @@ -2022,9 +2022,9 @@ def charge_rays_environment1Dv2(sources, sinks, environment_points, point_indexi directions, norm_length, ) - temp_ray_payload[:]["ox"] = unified_model[point_indexing[:, 0] - 1, 0] - temp_ray_payload[:]["oy"] = unified_model[point_indexing[:, 0] - 1, 1] - temp_ray_payload[:]["oz"] = unified_model[point_indexing[:, 0] - 1, 2] + temp_ray_payload[:]["ox"] = unified_model[point_indexing[:, -2] - 1, 0] + temp_ray_payload[:]["oy"] = unified_model[point_indexing[:, -2] - 1, 1] + temp_ray_payload[:]["oz"] = unified_model[point_indexing[:, -2] - 1, 2] temp_ray_payload[:]["dx"] = directions[:, 0] temp_ray_payload[:]["dy"] = directions[:, 1] temp_ray_payload[:]["dz"] = directions[:, 2]