3 freq diversion

This commit is contained in:
awe
2026-03-02 15:43:41 +03:00
parent 8cc21316e7
commit 1e05b1f3fd
7 changed files with 193 additions and 27 deletions

View File

@ -156,7 +156,11 @@ def reconstruct_complex_spectrum_diff(sweep: np.ndarray) -> np.ndarray:
d = np.gradient(cos_phi)
sin_est = normalize_trace_unit_range(d)
sin_est = np.clip(sin_est, -1.0, 1.0)
sin_est = normalize_trace_unit_range(d)
# mag = np.abs(sin_est)
# mask = mag > _EPS
# if np.any(mask):
# sin_est[mask] = sin_est[mask] / mag[mask]
z = cos_phi.astype(np.complex128, copy=False) + 1j * sin_est.astype(np.complex128, copy=False)
mag = np.abs(z)
z_unit = np.ones_like(z, dtype=np.complex128)