Naively I would assume it could be bool type though (that is how it's created), which would save a bit of memory. Someone should follow through where good_tiles_mask is used later in the code, and see if it is possible to instead keep it as a bool here.
For some reason the good tiles filter is cast to
uint8
here: https://github.com/brainglobe/cellfinder-core/blob/a536a1b2ccaadc6ec1d57a82f7f9e243a6862bdf/src/cellfinder_core/detect/filters/plane/plane_filter.py#L54Naively I would assume it could be
bool
type though (that is how it's created), which would save a bit of memory. Someone should follow through wheregood_tiles_mask
is used later in the code, and see if it is possible to instead keep it as abool
here.