running bkg_fixed_counts with a stack of source regions; where some/any of those regions are NULLs (ie FITS region files w/ 0 rows) the script would error out with an index array error.
This fix adds a check that there is at least 1 shape before accessing the first shape.
From helpdesk ...
running bkg_fixed_counts with a stack of source regions; where some/any of those regions are NULLs (ie FITS region files w/ 0 rows) the script would error out with an index array error.
This fix adds a check that there is at least 1 shape before accessing the first shape.