Updated photoreceptor.py with new model