-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
detected photon nscat distribution shows abnormalities #222
Comments
We have identified that this abnormal distribution was introduced in this commit (198cd34) on Aug. 3, 2023. All releases since then, including v2023 and v2024.2 contains this defect specifically, this behavior was caused by this single line of code change 198cd34#diff-a7174ac70bbab6b4d406c2a4ee9adc2c277c27d91c5eb874537219ea62145ddaL1015-R1016
what happened was that the above commit excludes photon-packets that had numerically dropped its weight to 0 after many many scattering/long paths. In the above sample code, there are about 82 photons out of 3811706 detected photons were excluded. Because of this truncation, somehow the distribution became skewed - it is interesting to plot the despite that this looks strikingly incorrect, in practice, I do not believe this is a big issue (as long as the data are properly analyzed). First of all, the affected photon packets are small - they are extremely long path photons and float32 weight drops to numerical zero after over 20000 times of scattering calculations; secondly, when a user analyze such long path or large-scattering-count photons, they should use the corresponding weight to properly weight the contribution; because these packets have nearly zero weight, they literally do not contribute to any of the statistical quantities. regardless, reverting this line back to after fix, now it looks like this (in log-y scale) |
This issue was reported by Robin van Zutphen in the following mailing list post
https://groups.google.com/g/mcx-users/c/AUv9jgCX5RQ
the following test code shows an abnormal bump in the nscat distribution; we confirm that this result is reproducible.
The text was updated successfully, but these errors were encountered: