Having issues with photon timing and refractive index #14
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
|
Hi, thanks for the feedback! One thing to be aware of is that if you have matchedInterfaces = true, then all refractive indices are set to 1, even for the purposes of time tagging. Some of your discrepancies might stem from that. I also noticed a bug where the plotting function would not plot results from a light collector that is time-resolved but not spatially resolved, although it's unlikely to have anything to do with your issues. I have made a new commit that fixes this bug and adds a warning when the user uses time tagging and has matchedInterfaces = true. Try unpacking and running the attached test.m file on the new commit and see how the expected photon arrival time matches the measured arrival time. If your code still gives wrong results then I can take a look at it if you can share a minimal working example model file. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Thank you so much! This fixed it completely. |
Beta Was this translation helpful? Give feedback.


Hi, thanks for the feedback!
One thing to be aware of is that if you have matchedInterfaces = true, then all refractive indices are set to 1, even for the purposes of time tagging. Some of your discrepancies might stem from that.
I also noticed a bug where the plotting function would not plot results from a light collector that is time-resolved but not spatially resolved, although it's unlikely to have anything to do with your issues.
I have made a new commit that fixes this bug and adds a warning when the user uses time tagging and has matchedInterfaces = true.
Try unpacking and running the attached test.m file on the new commit and see how the expected photon arrival time matches the me…