Good pixel mask is not properly applied
The good pixel mask (for differential) is not applied properly. As an example you can see here a single pixel threshold scan with and without applying the good pixel mask. As one can clearly see, there is a difference, which of course should not be present.
20190120_200133_threshold_scan_interpreted_not_using_good_pixel_mask.pdf
20190120_200356_threshold_scan_interpreted_using_good_pixel_mask.pdf
The problem is that when using the good pixel mask, the enable mask is overwritten, thus the whole chip is enabled. Proper way would be an ANDing of enable mask and good pixel mask.