Repository navigation
1.39.0: monte_carlo_raman_light_field, Raman scattering in the package (DECISIONS section 156) - #137
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Author: T. Ishibashi takuya.ishibashi@kek.jp
Raman scattering in the package:
monte_carlo_raman_light_fieldandMonteCarloRamanLightField(DECISIONS.md section 156; public names 154 to 156). No shipped value changed;monte_carlo_light_fieldreturns exactly what it did.Design (the user chose, from three, a function of its own)
wavelength_nmfrom the sun's own light there and from Raman scattering of the light at a shorterexcitation_nm, by the same Monte Carlo asmonte_carlo_light_field.excitation_ratio,raman_b(none shipped: 2.6e-4, 2.7e-4, 2.4e-4 per metre at 488 nm from Marshall & Smith 1990, Bartlett et al. 1998, Desiderio 2000),raman_depolarisation,raman_units("energy" or "quanta", Desiderio's Eq. 3),raman_in_absorption(Desiderio's Eq. 4), and the surface, bottom, depths, photons, batches and seed.windandsurface_facetsare required without a FutureWarning (a new function has no older calls).left_out.Engine
_simulategainsstart(photons started in the water) andemit(a Raman photon recorded at each collision, its direction from a separate generator), and always returns the light at the surface from below and going down from it. With neither, it draws the same random numbers and returns the same results (checked before and after with flat, "one" and "all" surfaces).monte_carlo_light_field's checks and the assembly of its result are moved to_checkedand_assemble, shared with the new function.Checks (set beforehand, section 156)
monte_carlo_light_field's (a test).test_public_inputs.py's CALLS.Found
Porto (1966), cited by Mobley et al. for the Raman phase function, gives its angular form but does not mention water; its 0.17 is a nitrobenzene line. Water's 0.17 is Marshall & Smith's, from their references (DATA.md section 56, a note; confirmed defects stay 15).
Documents
DATA.md section 56; API page;
docs/choosing.rst; the depth-and-light topic page; README and.zenodo.json(56 entries; the Raman function); CHANGELOG;tools/raman_package_check.pyandexamples/data/raman_package/.Tests
test_compatibility.py, 154 to 156), fixed in the last commit and that file rerun.Generated by Claude Code