Your code runs fine if I change convolve_noise_data to pad_rotate_project_data, since the firmer one is undefined.
PS: I’ve formatted your code so that I could easily copy and debug it. You can add code snippets using three backticks ```