Variable Lag and slicing

If you want to use pytensor tensors as indexers, you need to be indexing into a pytensor tensor. What are the datatypes of x and y in your example code?