With commit e3b84ed the unwrap_phase function would always return an ndarray even when image was masked. This restores the pre-e3b84ed behavior of returning a masked array when the image is masked.
e3b84ed
pad