Skip to content
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

Fix resonator frequency spacing plot #446

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Fix resonator frequency spacing plot #446

merged 1 commit into from
Oct 4, 2024

Conversation

dpdutcher
Copy link
Collaborator

Addresses #445

The old code ran np.quantile on the list of frequencies, then sorted it, then took the diff.
The new code takes the diff of the list of frequences, which is already sorted in frequency band order, and runs np.quantile on that.

Note this isn't perfect, as it still treats the two separate RF transmission lines (bands 0--3 and bands 4--7) as one, but the one -2GHz spacing is cut out via use of np.quantile.

Tested in Princeton R+D testbed.

Before:
image

After:
image

@dpdutcher dpdutcher requested a review from msilvafe October 4, 2024 14:26
Copy link
Contributor

@msilvafe msilvafe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for finding + fixing this bug. Please close the issue when you merge.

@dpdutcher dpdutcher merged commit 8419a43 into master Oct 4, 2024
1 check passed
@dpdutcher dpdutcher deleted the issue445 branch October 4, 2024 14:39
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