Skip to content

Added set_wait_time and ACTION_MEASURE callback for tune#154

Merged
JeanLucPons merged 1 commit intomainfrom
fix-for-tuneresponse
Jan 28, 2026
Merged

Added set_wait_time and ACTION_MEASURE callback for tune#154
JeanLucPons merged 1 commit intomainfrom
fix-for-tuneresponse

Conversation

@JeanLucPons
Copy link
Contributor

def tune_callback(step: int, action: int, m: Magnet, dtune: np.array):
    if action == ACTION_MEASURE:
        # On action measure, the measured dq / dk is passed as argument
        print(f"Tune response: #{step} {m.get_name()} {dtune}")
    return True
...
tune_adjust.response.measure(callback=tune_callback,set_wait_time=0.0 if SR == sr.design else 2.0)

@JeanLucPons
Copy link
Contributor Author

This PR can be merged and should not bring any backward compatibility issue.

@JeanLucPons JeanLucPons requested a review from kparasch January 28, 2026 14:53
@JeanLucPons JeanLucPons merged commit 5e950e5 into main Jan 28, 2026
3 checks passed
@JeanLucPons JeanLucPons deleted the fix-for-tuneresponse branch January 28, 2026 15:18
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.

2 participants