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

silx.gui.plot3d: Revert unwanted change and fixed deprecation warning #4046

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

t20100
Copy link
Member

@t20100 t20100 commented Jan 15, 2024

This PR reverts some debug changes that were included in PR #4044 and it removes a deprecation warning.

@t20100 t20100 added this to the 2.0.0 milestone Jan 15, 2024
@t20100 t20100 changed the title Revert unwanted change and fix deprecation warning silx.gui.plot3d: Revert unwanted change and fixed deprecation warning Jan 15, 2024
Comment on lines +565 to +566
depthPatch = gl.glReadPixels(x, y, 1, 1, gl.GL_DEPTH_COMPONENT, gl.GL_FLOAT)
depth = numpy.ravel(depthPatch)[0]
Copy link
Member Author

Choose a reason for hiding this comment

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

This fixes the deprecation warning: getReadPixels returns a 2D array and depth was a 1 element array and then float(depth) complains...

@t20100 t20100 requested a review from vallsv January 15, 2024 15:54
@vallsv vallsv merged commit 52ecb4d into silx-kit:main Jan 15, 2024
7 of 8 checks passed
@t20100 t20100 deleted the fix branch March 13, 2024 10:38
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