1-d version of the pyro2 patch.py