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

DM-42888: Incorporate amp-to-amp correlation plots in analysis_tools for camera diagnostics #210

Merged
merged 1 commit into from Feb 29, 2024

Conversation

enourbakhsh
Copy link
Contributor

No description provided.

@enourbakhsh enourbakhsh force-pushed the tickets/DM-42888 branch 9 times, most recently from ab96bda to 595fcb4 Compare February 23, 2024 07:16
Copy link
Contributor

@czwa czwa left a comment

Choose a reason for hiding this comment

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

One minor question for my own understanding.

yAxisTickValues = np.arange(matrix.shape[1] + shift)
xAxisTickLabels = {key + shift: str(val) for key, val in zip(range(matrix.shape[0]), comp1[0, :])}
yAxisTickLabels = {key + shift: str(val) for key, val in zip(range(matrix.shape[1]), comp2[:, 0])}
xAxisTickValues = np.arange(matrix.shape[1] + shift)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you explain why you flipped indices here? I don't think it matters, but I was curious.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, it doesn't quite matter here since we're dealing with square matrices for correlations. Just thought it might be useful for future-proofing, in case someone comes along with a non-square matrix to plot. I thought the flip from matrix.shape[0] to matrix.shape[1] for the x-axis made sense, as in a 2D matrix (array), matrix.shape[0] represents the number of rows (which can be thought of as the matrix's height?), and matrix.shape[1] represents the number of columns (which can be thought of as the matrix's width?), unless I'm totally mistaken.

Copy link
Contributor

Choose a reason for hiding this comment

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

That all makes sense to me. Thanks for the quick explanation!

@enourbakhsh enourbakhsh merged commit 1aea84b into main Feb 29, 2024
8 checks passed
@enourbakhsh enourbakhsh deleted the tickets/DM-42888 branch February 29, 2024 04:16
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.

None yet

2 participants