@@ -126,6 +126,7 @@ class SpeckleProfile(Profile):
126126
127127 relative_laser_bandwidth : float
128128 Bandwidth of laser pulse, relative to central frequency.
129+ Only used if ``temporal_smoothing_type`` is ``'FM SSD'``, ``'GS RPM SSD'`` or ``'GS ISI'``.
129130
130131 ssd_phase_modulation_amplitude :list of 2 floats
131132 Amplitude of phase modulation in each transverse direction.
@@ -191,7 +192,6 @@ def __init__(
191192 np .arange (self .n_beamlets [1 ], dtype = float ),
192193 np .arange (self .n_beamlets [0 ], dtype = float ),
193194 )
194- self .set_phase_plate_phase_modulation ()
195195
196196 if "SSD" in self .temporal_smoothing_type .upper ():
197197 # Initialize SSD parameters
@@ -256,10 +256,6 @@ def __init__(
256256 assert np .size (q ) == 2 , "has to be a size 2 array"
257257 assert q [0 ] > 0 or q [1 ] > 0 , "cannot be all zeros"
258258
259- def set_phase_plate_phase_modulation (self ):
260- """Set random phase offset for SSD."""
261- self .phase_plate_phase_modulation = np .random .standard_normal (2 ) * np .pi
262-
263259 def init_gaussian_time_series (
264260 self ,
265261 series_time ,
@@ -357,7 +353,7 @@ def beamlets_complex_amplitude(
357353 return np .ones_like (self .X_lens_matrix )
358354 if temporal_smoothing_type .upper () == "FM SSD" :
359355 phase_t = self .ssd_phase_modulation_amplitude [0 ] * np .sin (
360- self .phase_plate_phase_modulation [0 ]
356+ self .ssd_x_y_dephasing [0 ]
361357 + 2
362358 * np .pi
363359 * self .ssd_phase_modulation_frequency [0 ]
@@ -366,7 +362,7 @@ def beamlets_complex_amplitude(
366362 - self .X_lens_matrix * self .ssd_time_delay [0 ] / self .n_beamlets [0 ]
367363 )
368364 ) + self .ssd_phase_modulation_amplitude [1 ] * np .sin (
369- self .phase_plate_phase_modulation [1 ]
365+ self .ssd_x_y_dephasing [1 ]
370366 + 2
371367 * np .pi
372368 * self .ssd_phase_modulation_frequency [1 ]
@@ -494,7 +490,8 @@ def evaluate(self, x, y, t):
494490 else :
495491 raise NotImplementedError
496492 exp_phase_plate = np .exp (1j * phase_plate )
497- self .set_phase_plate_phase_modulation ()
493+ if temporal_smoothing_type .upper () == "FM SSD" :
494+ self .ssd_x_y_dephasing = np .random .standard_normal (2 ) * np .pi
498495
499496 series_time = np .arange (0 , t_max + self .dt_update , self .dt_update )
500497
0 commit comments