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

Missing attribute? #889

Open
slnickerson opened this issue Sep 29, 2023 · 3 comments
Open

Missing attribute? #889

slnickerson opened this issue Sep 29, 2023 · 3 comments

Comments

@slnickerson
Copy link

I was using "cube.subcube_from_crtfregion" to extract a carta subregion. And received the error below. Perhaps the region package changed the names of its attributes? Thanks!

line 2020, in subcube_from_crtfregion
region_list = regions.CRTFParser(crtf_region).shapes.to_regions()
AttributeError: module 'regions' has no attribute 'CRTFParser'

@slnickerson
Copy link
Author

Looks like there is a similar issue with ds9 regions. The error reads:

line 1999, in subcube_from_ds9region
region_list = regions.DS9Parser(ds9_region).shapes.to_regions()
AttributeError: module 'regions' has no attribute 'DS9Parser'

@keflavich
Copy link
Contributor

The error including DS9Parser was addressed in a previous commit. The CRTFParser issue is a real one

@slnickerson
Copy link
Author

Great to know thanks! I found a way around this just by using cube.subcube_from_regions

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

No branches or pull requests

2 participants