feat: Implement speckled driver - #168
Conversation
|
the |
|
How are we going to have the speckles be differentiable if the pattern is loaded? Is this a bridge PR before we implement the differentiable speckles? |
yeah, I wanted to avoid having to define a whole family of arbitrary function definitions in yaml like we have for the driver and laser pulse stuff sometimes, so went with this just for testing it out. I imagine we'll want to do the more flexible problem definition pattern and connect it up directly to a LASY simulation, right? |
18791bb to
ca7539a
Compare
|
Example run here: https://continuum.ergodic.io/experiments/#/experiments/188384/runs/d09b9af0a83d41c2ac1b9a2c808ceaf2/artifacts The speckle pattern passes a sanity check for me. For this config we have f_num = 10 and lambda_0 = 351nm, so we should have speckle features on the order of 3.5um. |
This is apparently required to enable building in a jj workspace (which doesn't have a .git folder)
… speckle patterns - Add adept/_lpse2d/core/speckle.py: JAX port of LASY SpeckleProfile - Supports RPP, CPP, FM SSD, GP RPM SSD, GP ISI smoothing types - evaluate() takes JAX PRNGKey for random number generation - Add tests/test_lpse2d/test_speckle.py: Ported LASY speckle tests - Add SpeckledDriver: loads y-dependent intensity/phase from .npz file - Add speckle_file field to E0DriverModel configuration - Add generate_speckle.py utility script and example config
This reverts commit 7ab3435.
- Remove x_si_zeros instance variable (unused outside __init__) - Remove speckle envelope caching, always compute dynamically - Rename t to t_ps in laser_update for clarity on units - Rename config files: tpd-lasy-speckle-ssd.yaml -> tpd-dynamic-ssd-speckle.yaml, tpd-lasy-speckle.yaml -> tpd-static-cpp-speckle.yaml - Change focal_length and beam_aperture config to use strings with units (e.g. '3.5m') - Update mlflow run names to match file names - Remove SpeckledDriver class, generate_speckle.py, tpd-speckled.yaml, and speckle.npz - Remove CODE_REVIEW.md
8a8b996 to
e66299d
Compare
joglekara
left a comment
There was a problem hiding this comment.
looks fine but probably need to remove the npz stuff?
febc7b1 to
affdaae
Compare
affdaae to
ec780dc
Compare
ec780dc to
9b2f8ab
Compare
Implements the LASY speckling envelope.