Closed kecnry closed 2 years ago
with the same setup, the following also raises the background regions overlap error (@ojustino - can this scenario be included in #125?):
bg = Background(image, FlatTrace(image, 30), width=2)
I also saw that the overlap error affected more than just backgrounds created with KosmosTrace
, so I don't find this unexpected. I don't get an error when I run this line on that PR's branch, though I do have to enclose the FlatTrace
in a list.
We have resolved this issue by merging #125 and #127.
modified script to reproduce from the
boxcar_extraction.ipynb
notebook:The integer error is a pretty easy fix (we can avoid the mask by acting on
trace.data
instead oftrace
), but we have to decide whether the background trace going out of bounds should raise an error, raise an error only if the entire boxcar falls outside the image, or continues without an error (and just includes pixels in the boxcar if within range and zeros or nans otherwise).