예제 #1
0
파일: eyeModel.py 프로젝트: bps10/emmetrop
def traceEye(object_distance=1e8, off_axis=0, pupil_size=3, diopters=0, wavelength=550):
    '''
    '''

    intensity = eye.py_eye(object_distance, off_axis, pupil_size, diopters, wavelength)

    return intensity
예제 #2
0
#!/usr/bin/env python
import sys
sys.path.append("./")
import cProfile
import timeit
import eye as eye



print (timeit.timeit('eye.py_eye( object_distance=1e8, off_axis=0, pupil_size=4, diopters=0)', 
	number=10, setup='import eye as eye'))

intensity = eye.py_eye( object_distance=1e8, off_axis=0, 
		pupil_size=4, diopters=0)

import matplotlib.pylab as plt
plt.figure()
plt.plot(intensity)
plt.show()