Skip to content

Tpm/eta phase units - #520

Merged
tristpinsm merged 1 commit into
tpm/rogue6from
tpm/eta-phase-units
Sep 5, 2026
Merged

tristpinsm merged 1 commit into
tpm/rogue6from
tpm/eta-phase-units

Conversation

@tristpinsm

Copy link
Copy Markdown
Contributor

S.get_eta_phase_array returns radians, but the 'eta_phase' key of a resonance dict is degrees. run_grad_descent_and_eta_scan wrote the radians value into res['eta_phase'] with update_tune=True, so the resulting tune file held radians under a degrees key and every phase came back ~57x too small when reloaded. plot_channel_resonance made the opposite mistake, converting the already-radians array with np.deg2rad before rotating the response, so the circle plot was drawn at the wrong angle.

In get_full_band_sweep, restore the eta magnitude before the phase. Eta is stored in firmware as Cartesian etaI/etaQ and each setter recomputes from the other's current value, so setting the phase while the magnitude is zero writes (0, 0) and drops the phase.

S.get_eta_phase_array returns radians, but the 'eta_phase' key of a
resonance dict is degrees. run_grad_descent_and_eta_scan wrote the
radians value into res['eta_phase'] with update_tune=True, so the
resulting tune file held radians under a degrees key and every phase
came back ~57x too small when reloaded. plot_channel_resonance made the
opposite mistake, converting the already-radians array with np.deg2rad
before rotating the response, so the circle plot was drawn at the wrong
angle.

In get_full_band_sweep, restore the eta magnitude before the phase. Eta
is stored in firmware as Cartesian etaI/etaQ and each setter recomputes
from the other's current value, so setting the phase while the magnitude
is zero writes (0, 0) and drops the phase.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@tristpinsm
tristpinsm merged commit a180cbf into tpm/rogue6 Sep 5, 2026
2 checks passed
@tristpinsm
tristpinsm deleted the tpm/eta-phase-units branch September 5, 2026 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant