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

[bugfix] Fix FITSParticleProjection for all axes #3375

Merged
merged 2 commits into from
Jun 24, 2021

Conversation

jzuhone
Copy link
Contributor

@jzuhone jzuhone commented Jun 23, 2021

PR Summary

This PR fixes the recently added FITSParticleProjection class. The bounds for the FITS image were incorrectly being calculated--they assumed that the appropriate values for the center of the image were those in the x and y axes, which is only true for a projection along the z-axis. This fix ensures that the correct values of the center coordinate are chosen depending on the axis of the projection.

@jzuhone jzuhone added the bug label Jun 23, 2021
@neutrinoceros
Copy link
Member

@yt-fido test this please

@neutrinoceros neutrinoceros merged commit 3214ad0 into yt-project:main Jun 24, 2021
@jzuhone jzuhone deleted the fix_fits_particle branch October 24, 2021 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants