teuben / GBT-EDGE

sample scripts to reduce GBT EDGE data
3 stars 1 forks source link

plot_spectrum broken with ds9 regions upstream conflict #3

Open teuben opened 1 year ago

teuben commented 1 year ago

plot_spectrum (e.g. make bench3) is now broken; ? is this related to

https://github.com/radio-astro-tools/spectral-cube/pull/805

teuben commented 1 year ago

perhaps a pilot error, "pip install regions" was needed. But then there's this complaint:

  FileNotFoundError: [Errno 2] No such file or directory: 'fk5; circle(1.8160000000, 27.7082500000, 5")'
teuben commented 1 year ago

a hack would be

            #region_list = regions.Regions.read(ds9_region)
            region_list = regions.Regions.parse(ds9_region, format='ds9')

so did the meaning of parse change, or was the implementation done wrong by assuming the string was a file ?

teuben commented 3 months ago

pip install regions==0.5

if you're in a hurry