fix sample support bug in Ptychography.py