From c273a822a4e578214578f47f720013aacbeeb5c0 Mon Sep 17 00:00:00 2001 From: mamintatarin <42464672+mamintatarin@users.noreply.github.com> Date: Tue, 11 Nov 2025 13:30:49 +0300 Subject: [PATCH] Update photon_tracer.py Just a small (probably typo) fix, to add consistency to the tracer returned list - always return tuples, without lists --- pvtrace/algorithm/photon_tracer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvtrace/algorithm/photon_tracer.py b/pvtrace/algorithm/photon_tracer.py index 139be2f..b126244 100644 --- a/pvtrace/algorithm/photon_tracer.py +++ b/pvtrace/algorithm/photon_tracer.py @@ -155,7 +155,7 @@ def follow(scene, ray, maxsteps=1000, maxpathlength=np.inf, emit_method="kT"): while True: count += 1 if count > maxsteps or ray.travelled > maxpathlength: - history.append([ray, Event.KILL]) + history.append((ray, Event.KILL)) break info = next_hit(scene, ray)