If you could provide a reproducible snippet for the ufunc part that would be useful for us to finally reproduce that error