Open cristobal-sifon opened 6 years ago
I made a PR which enables 'd' and 'r'.
While supporting 'i' and 'p' in the parser is straight-forward, it is a bit more complicated to interpret the values because of the some design issue. I am working on the fix though.
I created this in the
aplpy
site (https://github.com/aplpy/aplpy/issues/381) but it seems it may be more relevant here.using
aplpy.FITSFigure.show_regions
I can load a region file with the following content just fine:but when the units correspond to a letter (i.e., 'd' for degrees, 'r' for radians, 'p' for physical pixels or 'i' for image pixels), the command cannot be parsed. Take a file with the following content
This file loads without a problem in ds9, but when passed to
aplpy.FITSFigure.show_regions
it issues the following warning:If this happens with all the entries in my
reg
file, then the following exception is raised:N.B. all this is with pyregion 1.2.0 re: https://github.com/aplpy/aplpy/issues/369