Skip to content

Add ParameterMixin for extending parameter functionality #6731

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DCEM
Copy link
Contributor

@DCEM DCEM commented Dec 18, 2024

This commit introduces a general-purpose ParameterMixin designed to allow the extension of QCoDeS Parameters. It enables the addition of new features (e.g., on-cache-change callbacks, interdependent updates, and state reset synchronization) across parameter types without requiring per-parameter customization. It does handle docstring updates, enforces naming and allows to declare compatibility.

It replaces #6700.

This commit introduces a general-purpose ParameterMixin designed to allow the extension of QCoDeS Parameters.
It enables the addition of new features (e.g., on-cache-change callbacks, interdependent updates,
and state reset synchronization) across parameter types without requiring per-parameter customization.
It does handle docstring updates, enforces naming and allows to declare compatibility.
@thangleiter
Copy link
Contributor

I think this is a great addition. I have written Parameter subclasses with similar patterns multiple times + several in my measurement code.

@DCEM
Copy link
Contributor Author

DCEM commented Apr 25, 2025

@microsoft-github-policy-service agree

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