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

BUG: broken optional dependency (pyregion) #4234

Closed
neutrinoceros opened this issue Dec 4, 2022 · 1 comment · Fixed by #4235
Closed

BUG: broken optional dependency (pyregion) #4234

neutrinoceros opened this issue Dec 4, 2022 · 1 comment · Fixed by #4235

Comments

@neutrinoceros
Copy link
Member

neutrinoceros commented Dec 4, 2022

Bug report

Bug summary

pyregion is being used sporadically in a couple docs notebooks and is a docs-only dependency to yt. It's also quite fragile as no wheels are available and pip fails to build the current latest version (2.1.1) from source.
The project is targeted for retirement astropy/pyregion#153, so we should move to regions when possible (maybe it's already the case).

@neutrinoceros
Copy link
Member Author

Here's a minimal example of how the ds9_region function is supposed to be used

import yt
from yt.frontends.fits.misc import ds9_region

ds = yt.load("grs-50-cube.fits.gz")
region = 'galactic;box(+49:26:35.150,-0:30:04.410,1926.1927",1483.3701",0.0)'
box_reg = ds9_region(ds, region)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant