Any suggestions on continous error "ValueError: shape mismatch: value array of shape (62,) could not be broadcast to indexing result of shape (0,)"

Hi,

Thank you so much for helping me debugging and sorry for the late reply. As suggested by @ricardoV94 , I mixed pytensor and “normal” if..else. pytensor.ifelse.ifelse and pytensor.scan solved my problem.