On raw images taken with a modified Nikon camera, in comp_bayer(), the line a0 = (t0 << 4) + ((t1 & 0xF0) >> 4) gives
(ValueError('operands could not be broadcast together with shapes (13408599,) (13408598,) '),)
i don't really get what bay_img is but if it's the bayer image, you could do self._bay_img = rawpy.imread(self._lfp_path).raw_image.astype('float') innstead of calling self.comp_bayer(). (It uses the rawpy library)
On raw images taken with a modified Nikon camera, in
comp_bayer(), the linea0 = (t0 << 4) + ((t1 & 0xF0) >> 4)gives(ValueError('operands could not be broadcast together with shapes (13408599,) (13408598,) '),)i don't really get what bay_img is but if it's the bayer image, you could do
self._bay_img = rawpy.imread(self._lfp_path).raw_image.astype('float')innstead of callingself.comp_bayer(). (It uses the rawpy library)