Exemple #1
0
def test_fcs(t0, t1) :

	# create TIRF Microscopy
	fcs = FCSConfigs()

	fcs.set_LightSource(source_type='LASER', wave_mode='TEM00', M2_factor=1.00, wave_length=473, power=500e-6, radius=0.32e-3)
	#fcs.set_BeamExpander(expander_type='Keplerian', focal_length1=30e-3, focal_length2=20e-3, pinhole_radius=13e-6)
	fcs.set_Fluorophore(fluorophore_type='Qdot 605')
	#fcs.set_Fluorophore(fluorophore_type='Gaussian', wave_length=605, width=(100.0, 200.0))
	fcs.set_Objective(NA=1.20, Nm=1.37, focal_length=1.9e-3, efficiency=0.90)
	fcs.set_TubeLens1(focal_length=160e-3)
	fcs.set_ScanLens(focal_length=50e-3)
	fcs.set_PinholeLens(focal_length=200e-3, radius=13e-6)
	fcs.set_Detector(detector='PMT', zoom=1, emgain=1e+6, focal_point=(0.5,0.5,0.5), \
			start_time=t0, end_time=t1, fps=1/10e-5, exposure_time=10e-5)
	fcs.set_Movie(image_file_dir='./images_fcs_0100', movie_filename='./movies/fcs_movie.mp4')
	fcs.set_Output(output_file_dir='./output_fcs_0100')
	fcs.set_DataFile(['./data/lattice/test_fcs_0100.h5'])

	# create image and movie
	create = FCSVisualizer(configs=fcs)
	#create.get_plots(plot_filename='./plots/fcs_airy.pdf')
	create.output_frames(num_div=1)