I'm not familiar with this algo, but according to the comment, I'm wondering if this line can go in "elif filter == "ramp": "