Skip to content

Commit

Permalink
Fix ds9 region usage in issue 867 (#899)
Browse files Browse the repository at this point in the history
Fixes #867
  • Loading branch information
ParfenovS authored Jan 30, 2024
1 parent 2bf73b3 commit 3f9665a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spectral_cube/spectral_cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -2026,7 +2026,7 @@ def subcube_from_ds9region(self, ds9_region, allow_empty=False):
if hasattr(regions, 'DS9Parser'):
region_list = regions.DS9Parser(ds9_region).shapes.to_regions()
else:
region_list = regions.Regions.read(ds9_region)
region_list = regions.Regions.parse(ds9_region, format="ds9")
else:
raise TypeError("{0} should be a DS9 string".format(ds9_region))

Expand Down

0 comments on commit 3f9665a

Please sign in to comment.